utils package

Submodules

utils.CustomNavBar module

class utils.CustomNavBar.MyCustomToolbar(plotCanvas, parent, coordinates=True)[source]

Bases: NavigationToolbar2QT

Methods

PaintDeviceMetric

RenderFlag

RenderFlags(...)

acceptDrops(self)

accessibleDescription(self)

accessibleName(self)

actionAt(-> QAction)

actionEvent(self, QActionEvent)

actionGeometry(self, QAction)

actionTriggered

actionTriggered(self, QAction) [signal]

actions(self)

activateWindow(self)

addAction(-> QAction  -> QAction  -> QAction)

addActions(self, Iterable[QAction])

addSeparator(self)

addWidget(self, QWidget)

adjustSize(self)

allowedAreas(self)

allowedAreasChanged

allowedAreasChanged(self, Union[Qt.ToolBarAreas, Qt.ToolBarArea]) [signal]

autoFillBackground(self)

back(*args)

Move back up the view lim stack.

backgroundRole(self)

baseSize(self)

blockSignals(self, bool)

changeEvent(self, QEvent)

childAt(-> QWidget)

childEvent(self, QChildEvent)

children(self)

childrenRect(self)

childrenRegion(self)

clear(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, QCloseEvent)

colorCount(self)

connectNotify(self, QMetaMethod)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, QContextMenuEvent)

contextMenuPolicy(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(QWindow[, parent, flags])

cursor(self)

customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

destroyed

QObject = None) [signal]

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dragEnterEvent(self, QDragEnterEvent)

dragLeaveEvent(self, QDragLeaveEvent)

dragMoveEvent(self, QDragMoveEvent)

drag_pan(event)

Callback for dragging in pan/zoom mode.

drag_zoom(event)

Callback for dragging in zoom mode.

draw_rubberband(event, x0, y0, x1, y1)

Draw a rectangle rubberband to indicate zoom limits.

dropEvent(self, QDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

effectiveWinId(self)

ensurePolished(self)

enterEvent(self, QEvent)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

find(PyQt5.sip.voidptr)

findChild(-> QObject)

findChildren(...)

focusInEvent(self, QFocusEvent)

focusNextChild(self)

focusNextPrevChild(self, bool)

focusOutEvent(self, QFocusEvent)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundRole(self)

forward(*args)

Move forward in the view lim stack.

frameGeometry(self)

frameSize(self)

geometry(self)

getContentsMargins(self)

grab(self[, rectangle])

grabGesture(self, Qt.GestureType, flags, ...)

grabKeyboard(self)

grabMouse(grabMouse)

grabShortcut(self, Union[QKeySequence, ...)

graphicsEffect(self)

graphicsProxyWidget(self)

hasFocus(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, int)

heightMM(self)

hide(self)

hideEvent(self, QHideEvent)

home(*args)

Restore the original view.

iconSize(self)

iconSizeChanged

iconSizeChanged(self, QSize) [signal]

inherits(self, str)

initPainter(self, QPainter)

initStyleOption(self, QStyleOptionToolBar)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

insertAction(self, QAction, QAction)

insertActions(self, QAction, Iterable[QAction])

insertSeparator(self, QAction)

insertWidget(self, QAction, QWidget)

installEventFilter(self, QObject)

isActiveWindow(self)

isAncestorOf(self, QWidget)

isAreaAllowed(self, Qt.ToolBarArea)

isEnabled(self)

isEnabledTo(self, QWidget)

isFloatable(self)

isFloating(self)

isFullScreen(self)

isHidden(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isMovable(self)

isRightToLeft(self)

isSignalConnected(self, QMetaMethod)

isVisible(self)

isVisibleTo(self, QWidget)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

keyboardGrabber()

killTimer(self, int)

layout(self)

layoutDirection(self)

leaveEvent(self, QEvent)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(self, QWidget, QPoint)

mapFromGlobal(self, QPoint)

mapFromParent(self, QPoint)

mapTo(self, QWidget, QPoint)

mapToGlobal(self, QPoint)

mapToParent(self, QPoint)

mask(self)

maximumHeight(self)

maximumSize(self)

maximumWidth(self)

metaObject(self)

metric(self, QPaintDevice.PaintDeviceMetric)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

mouseDoubleClickEvent(self, QMouseEvent)

mouseGrabber()

mouseMoveEvent(self, QMouseEvent)

mousePressEvent(self, QMouseEvent)

mouseReleaseEvent(self, QMouseEvent)

movableChanged

movableChanged(self, bool) [signal]

move(move)

moveEvent(self, QMoveEvent)

moveToThread(self, QThread)

nativeEvent(self, Union[QByteArray, bytes, ...)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

orientation(self)

orientationChanged

orientationChanged(self, Qt.Orientation) [signal]

overrideWindowFlags(self, ...)

overrideWindowState(self, ...)

paintEngine(self)

paintEvent(self, QPaintEvent)

paintingActive(self)

palette(self)

pan(*args)

Toggle the pan/zoom tool.

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

pos(self)

press_pan(event)

Callback for mouse button press in pan/zoom mode.

press_zoom(event)

Callback for mouse button press in zoom to rect mode.

previousInFocusChain(self)

property(self, str)

push_current()

Push the current view limits and position onto the stack.

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, PYQT_SIGNAL)

rect(self)

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, int)

release_pan(event)

Callback for mouse button release in pan/zoom mode.

release_zoom(event)

Callback for mouse button release in zoom to rect mode.

removeAction(self, QAction)

removeEventFilter(self, QObject)

remove_rubberband()

Remove the rubberband.

render(, sourceRegion, flags, ...)

repaint(...)

resize(resize)

resizeEvent(self, QResizeEvent)

restoreGeometry(self, Union[QByteArray, ...)

saveGeometry(self)

save_figure(*args)

Save the current figure.

screen(self)

scroll(scroll)

sender(self)

senderSignalIndex(self)

setAcceptDrops(self, bool)

setAccessibleDescription(self, str)

setAccessibleName(self, str)

setAllowedAreas(self, Union[Qt.ToolBarAreas, ...)

setAttribute(self, Qt.WidgetAttribute, on)

setAutoFillBackground(self, bool)

setBackgroundRole(self, QPalette.ColorRole)

setBaseSize(setBaseSize)

setContentsMargins(setContentsMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)

setCursor(self, Union[QCursor, Qt.CursorShape])

setDisabled(self, bool)

setEnabled(self, bool)

setFixedHeight(self, int)

setFixedSize(setFixedSize)

setFixedWidth(self, int)

setFloatable(self, bool)

setFocus(setFocus)

setFocusPolicy(self, Qt.FocusPolicy)

setFocusProxy(self, QWidget)

setFont(self, QFont)

setForegroundRole(self, QPalette.ColorRole)

setGeometry(setGeometry)

setGraphicsEffect(self, QGraphicsEffect)

setHidden(self, bool)

setIconSize(self, QSize)

setInputMethodHints(self, ...)

setLayout(self, QLayout)

setLayoutDirection(self, Qt.LayoutDirection)

setLocale(self, QLocale)

setMask(setMask)

setMaximumHeight(self, int)

setMaximumSize(setMaximumSize)

setMaximumWidth(self, int)

setMinimumHeight(self, int)

setMinimumSize(setMinimumSize)

setMinimumWidth(self, int)

setMouseTracking(self, bool)

setMovable(self, bool)

setObjectName(self, str)

setOrientation(self, Qt.Orientation)

setPalette(self, QPalette)

setParent(setParent)

setProperty(self, str, Any)

setShortcutAutoRepeat(self, int[, enabled])

setShortcutEnabled(self, int[, enabled])

setSizeIncrement(setSizeIncrement)

setSizePolicy(setSizePolicy)

setStatusTip(self, str)

setStyle(self, QStyle)

setStyleSheet(self, str)

setTabOrder(QWidget, QWidget)

setTabletTracking(self, bool)

setToolButtonStyle(self, Qt.ToolButtonStyle)

setToolTip(self, str)

setToolTipDuration(self, int)

setUpdatesEnabled(self, bool)

setVisible(self, bool)

setWhatsThis(self, str)

setWindowFilePath(self, str)

setWindowFlag(self, Qt.WindowType, on)

setWindowFlags(self, Union[Qt.WindowFlags, ...)

setWindowIcon(self, QIcon)

setWindowIconText(self, str)

setWindowModality(self, Qt.WindowModality)

setWindowModified(self, bool)

setWindowOpacity(self, float)

setWindowRole(self, str)

setWindowState(self, Union[Qt.WindowStates, ...)

setWindowTitle(self, str)

set_cursor(cursor)

[Deprecated] Set the current cursor to one of the Cursors enums values.

set_history_buttons()

Enable or disable the back/forward button.

set_message(s)

Display a message on toolbar or in status bar.

sharedPainter(self)

show(self)

showEvent(self, QShowEvent)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

signalsBlocked(self)

size(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

stackUnder(self, QWidget)

startTimer(self, int[, timerType])

statusTip(self)

style(self)

styleSheet(self)

tabletEvent(self, QTabletEvent)

testAttribute(self, Qt.WidgetAttribute)

thread(self)

timerEvent(self, QTimerEvent)

toggleViewAction(self)

toolButtonStyle(self)

toolButtonStyleChanged

toolButtonStyleChanged(self, Qt.ToolButtonStyle) [signal]

toolTip(self)

toolTipDuration(self)

topLevelChanged

topLevelChanged(self, bool) [signal]

tr(self, str[, disambiguation, n])

underMouse(self)

ungrabGesture(self, Qt.GestureType)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update()

Reset the axes stack.

updateGeometry(self)

updateMicroFocus(self)

updatesEnabled(self)

visibilityChanged

visibilityChanged(self, bool) [signal]

visibleRegion(self)

whatsThis(self)

wheelEvent(self, QWheelEvent)

widgetForAction(self, QAction)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self)

windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self)

x(self)

y(self)

zoom(*args)

Toggle zoom to rect mode.

configure_subplots

decibel_scale

edit_parameters

linear_scale

log_scale

message

mouse_move

rcParams

toggle_grid

decibel_scale()[source]
linear_scale()[source]
log_scale()[source]
rcParams()[source]
save_figure(*args)[source]

Save the current figure.

toggle_grid()[source]
class utils.CustomNavBar.SizeInputDialog(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())[source]

Bases: QDialog

Methods

DialogCode

PaintDeviceMetric

RenderFlag

RenderFlags(...)

accept(self)

acceptDrops(self)

accepted

accepted(self) [signal]

accessibleDescription(self)

accessibleName(self)

actionEvent(self, QActionEvent)

actions(self)

activateWindow(self)

addAction(self, QAction)

addActions(self, Iterable[QAction])

adjustSize(self)

autoFillBackground(self)

backgroundRole(self)

baseSize(self)

blockSignals(self, bool)

changeEvent(self, QEvent)

childAt(-> QWidget)

childEvent(self, QChildEvent)

children(self)

childrenRect(self)

childrenRegion(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, QCloseEvent)

colorCount(self)

connectNotify(self, QMetaMethod)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, QContextMenuEvent)

contextMenuPolicy(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(QWindow[, parent, flags])

cursor(self)

customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

destroyed

QObject = None) [signal]

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

done(self, int)

dragEnterEvent(self, QDragEnterEvent)

dragLeaveEvent(self, QDragLeaveEvent)

dragMoveEvent(self, QDragMoveEvent)

dropEvent(self, QDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

effectiveWinId(self)

ensurePolished(self)

enterEvent(self, QEvent)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

exec(self)

exec_(self)

find(PyQt5.sip.voidptr)

findChild(-> QObject)

findChildren(...)

finished

finished(self, int) [signal]

focusInEvent(self, QFocusEvent)

focusNextChild(self)

focusNextPrevChild(self, bool)

focusOutEvent(self, QFocusEvent)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundRole(self)

frameGeometry(self)

frameSize(self)

geometry(self)

getContentsMargins(self)

grab(self[, rectangle])

grabGesture(self, Qt.GestureType, flags, ...)

grabKeyboard(self)

grabMouse(grabMouse)

grabShortcut(self, Union[QKeySequence, ...)

graphicsEffect(self)

graphicsProxyWidget(self)

hasFocus(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, int)

heightMM(self)

hide(self)

hideEvent(self, QHideEvent)

inherits(self, str)

initPainter(self, QPainter)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

insertAction(self, QAction, QAction)

insertActions(self, QAction, Iterable[QAction])

installEventFilter(self, QObject)

isActiveWindow(self)

isAncestorOf(self, QWidget)

isEnabled(self)

isEnabledTo(self, QWidget)

isFullScreen(self)

isHidden(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isRightToLeft(self)

isSignalConnected(self, QMetaMethod)

isSizeGripEnabled(self)

isVisible(self)

isVisibleTo(self, QWidget)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

keyboardGrabber()

killTimer(self, int)

layout(self)

layoutDirection(self)

leaveEvent(self, QEvent)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(self, QWidget, QPoint)

mapFromGlobal(self, QPoint)

mapFromParent(self, QPoint)

mapTo(self, QWidget, QPoint)

mapToGlobal(self, QPoint)

mapToParent(self, QPoint)

mask(self)

maximumHeight(self)

maximumSize(self)

maximumWidth(self)

metaObject(self)

metric(self, QPaintDevice.PaintDeviceMetric)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

mouseDoubleClickEvent(self, QMouseEvent)

mouseGrabber()

mouseMoveEvent(self, QMouseEvent)

mousePressEvent(self, QMouseEvent)

mouseReleaseEvent(self, QMouseEvent)

move(move)

moveEvent(self, QMoveEvent)

moveToThread(self, QThread)

nativeEvent(self, Union[QByteArray, bytes, ...)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

open(self)

overrideWindowFlags(self, ...)

overrideWindowState(self, ...)

paintEngine(self)

paintEvent(self, QPaintEvent)

paintingActive(self)

palette(self)

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

pos(self)

previousInFocusChain(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, PYQT_SIGNAL)

rect(self)

reject(self)

rejected

rejected(self) [signal]

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, int)

removeAction(self, QAction)

removeEventFilter(self, QObject)

render(, sourceRegion, flags, ...)

repaint(...)

resize(resize)

resizeEvent(self, QResizeEvent)

restoreGeometry(self, Union[QByteArray, ...)

result(self)

saveGeometry(self)

screen(self)

scroll(scroll)

sender(self)

senderSignalIndex(self)

setAcceptDrops(self, bool)

setAccessibleDescription(self, str)

setAccessibleName(self, str)

setAttribute(self, Qt.WidgetAttribute, on)

setAutoFillBackground(self, bool)

setBackgroundRole(self, QPalette.ColorRole)

setBaseSize(setBaseSize)

setContentsMargins(setContentsMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)

setCursor(self, Union[QCursor, Qt.CursorShape])

setDisabled(self, bool)

setEnabled(self, bool)

setFixedHeight(self, int)

setFixedSize(setFixedSize)

setFixedWidth(self, int)

setFocus(setFocus)

setFocusPolicy(self, Qt.FocusPolicy)

setFocusProxy(self, QWidget)

setFont(self, QFont)

setForegroundRole(self, QPalette.ColorRole)

setGeometry(setGeometry)

setGraphicsEffect(self, QGraphicsEffect)

setHidden(self, bool)

setInputMethodHints(self, ...)

setLayout(self, QLayout)

setLayoutDirection(self, Qt.LayoutDirection)

setLocale(self, QLocale)

setMask(setMask)

setMaximumHeight(self, int)

setMaximumSize(setMaximumSize)

setMaximumWidth(self, int)

setMinimumHeight(self, int)

setMinimumSize(setMinimumSize)

setMinimumWidth(self, int)

setModal(self, bool)

setMouseTracking(self, bool)

setObjectName(self, str)

setPalette(self, QPalette)

setParent(setParent)

setProperty(self, str, Any)

setResult(self, int)

setShortcutAutoRepeat(self, int[, enabled])

setShortcutEnabled(self, int[, enabled])

setSizeGripEnabled(self, bool)

setSizeIncrement(setSizeIncrement)

setSizePolicy(setSizePolicy)

setStatusTip(self, str)

setStyle(self, QStyle)

setStyleSheet(self, str)

setTabOrder(QWidget, QWidget)

setTabletTracking(self, bool)

setToolTip(self, str)

setToolTipDuration(self, int)

setUpdatesEnabled(self, bool)

setVisible(self, bool)

setWhatsThis(self, str)

setWindowFilePath(self, str)

setWindowFlag(self, Qt.WindowType, on)

setWindowFlags(self, Union[Qt.WindowFlags, ...)

setWindowIcon(self, QIcon)

setWindowIconText(self, str)

setWindowModality(self, Qt.WindowModality)

setWindowModified(self, bool)

setWindowOpacity(self, float)

setWindowRole(self, str)

setWindowState(self, Union[Qt.WindowStates, ...)

setWindowTitle(self, str)

sharedPainter(self)

show(self)

showEvent(self, QShowEvent)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

signalsBlocked(self)

size(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

stackUnder(self, QWidget)

startTimer(self, int[, timerType])

statusTip(self)

style(self)

styleSheet(self)

tabletEvent(self, QTabletEvent)

testAttribute(self, Qt.WidgetAttribute)

thread(self)

timerEvent(self, QTimerEvent)

toolTip(self)

toolTipDuration(self)

tr(self, str[, disambiguation, n])

underMouse(self)

ungrabGesture(self, Qt.GestureType)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update(update update update  -> None  -> None)

updateGeometry(self)

updateMicroFocus(self)

updatesEnabled(self)

visibleRegion(self)

whatsThis(self)

wheelEvent(self, QWheelEvent)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self)

windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self)

x(self)

y(self)

button_press

getInputs

isOkay

validating

button_press()[source]
getInputs()[source]
classmethod isOkay(parent)[source]
validating(le)[source]

utils.create_project module

class utils.create_project.CreateProject[source]

Bases: object

utils.file_reader module

class utils.file_reader.FileReader[source]

Bases: object

Methods

excel_reader

json_reader

pam_reader

svl_reader

to_pd_dataframe

top_reader

txt_reader

excel_reader(filename)[source]
static json_reader(filename, header=None)[source]
pam_reader()[source]
svl_reader(filename)[source]
to_pd_dataframe()[source]
top_reader()[source]
txt_reader(filename, delimeter)[source]

utils.hom_coupler_orientation module

utils.hom_coupler_orientation.plot_settings()[source]

utils.house_keeping module

class utils.house_keeping.HouseKeeping(win)[source]

Bases: object

Methods

change_image

check_init

k_loss_polarization_control

k_loss_polarization_init

shape_space_check

show_hide

show_hide_

change_image(object, widget)[source]
check_init()[source]
k_loss_polarization_control()[source]
k_loss_polarization_init()[source]
shape_space_check()[source]
show_hide()[source]
show_hide_(wid1, wid2)[source]

utils.mat2python module

utils.mayavi_test module

utils.misc_functions module

utils.misc_functions.conv_dict_dataframe(dict, trim)[source]
utils.misc_functions.get_fid()[source]
utils.misc_functions.get_filename()[source]
utils.misc_functions.get_point_fid(data_point)[source]
utils.misc_functions.load_result_set(filename, plot_object)[source]
utils.misc_functions.pause_thread(t)[source]
utils.misc_functions.plotSNS(win)[source]
utils.misc_functions.plot_control(widget)[source]
utils.misc_functions.process_line(line)[source]
utils.misc_functions.read_parameters(ui)[source]
utils.misc_functions.resume_thread(t)[source]
utils.misc_functions.run_abci_exe(path)[source]
utils.misc_functions.run_slans_exe(path, filename=None)[source]
utils.misc_functions.show_hide_widget(cb, widget_list)[source]
utils.misc_functions.stop_thread(t)[source]
utils.misc_functions.toggle_show_hide(widget)[source]
utils.misc_functions.treeIndex(widget)[source]
utils.misc_functions.updateDict(dict_dir)[source]

utils.mode_spectral_line_code module

utils.newton_cavity_opt module

utils.newton_cavity_opt.evaluate_func(pn)[source]

utils.p3x1 module

utils.p3x1.p3x1(v)[source]

utils.pareto_test_problem module

utils.plot_objects module

utils.plotter module

class utils.plotter.Plotter[source]

Bases: object

Methods

formatAxis

plot

formatAxis(ax, color, position, offset=None)[source]
plot(sheet_name, x_name, y_name, ax1_name, ax2_name, ax3_name)[source]

utils.port_power module

utils.quick_plot module

utils.quick_plot.plot_cavity()[source]
utils.quick_plot.plot_electron_evolution_spark3d()[source]
utils.quick_plot.plot_multipac_triplot(Eacc_list, Epk_Eacc_list, folders, labels, kind='triplot')[source]
utils.quick_plot.plot_settings(mode)[source]
utils.quick_plot.plot_sey()[source]
utils.quick_plot.plot_trajectory()[source]
utils.quick_plot.sensitivity()[source]

utils.readtop module

utils.shared_classes module

class utils.shared_classes.EndRoutine(parent: QObject = None)[source]

Bases: QThread

Methods

Priority

blockSignals(self, bool)

childEvent(self, QChildEvent)

children(self)

connectNotify(self, QMetaMethod)

currentThread()

currentThreadId()

customEvent(self, QEvent)

deleteLater(self)

destroyed

QObject = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, QEvent)

eventDispatcher(self)

eventFilter(self, QObject, QEvent)

exec(self)

exec_(self)

exit(self[, returnCode])

findChild(-> QObject)

findChildren(...)

finished

finished(self) [signal]

idealThreadCount()

inherits(self, str)

installEventFilter(self, QObject)

isFinished(self)

isInterruptionRequested(self)

isRunning(self)

isSignalConnected(self, QMetaMethod)

isWidgetType(self)

isWindowType(self)

killTimer(self, int)

loopLevel(self)

metaObject(self)

moveToThread(self, QThread)

msleep(int)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

parent(self)

priority(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

quit(self)

receivers(self, PYQT_SIGNAL)

removeEventFilter(self, QObject)

requestInterruption(self)

run(self)

sender(self)

senderSignalIndex(self)

setEventDispatcher(self, ...)

setObjectName(self, str)

setParent(self, QObject)

setPriority(self, QThread.Priority)

setProperty(self, str, Any)

setStackSize(self, int)

setTerminationEnabled([enabled])

signalsBlocked(self)

sleep(int)

stackSize(self)

start(self[, priority])

startTimer(self, int[, timerType])

started

started(self) [signal]

terminate(self)

thread(self)

timerEvent(self, QTimerEvent)

tr(self, str[, disambiguation, n])

usleep(int)

wait(-> bool)

yieldCurrentThread()

combine_dict

delete_process_dict

end_routine

static combine_dict(proc_count, filename, projectDir)[source]
static delete_process_dict(proc_count, projectDir)[source]
end_routine()[source]
run(self)[source]
class utils.shared_classes.MathTextLabel(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())[source]

Bases: QWidget

Methods

PaintDeviceMetric

RenderFlag

RenderFlags(...)

acceptDrops(self)

accessibleDescription(self)

accessibleName(self)

actionEvent(self, QActionEvent)

actions(self)

activateWindow(self)

addAction(self, QAction)

addActions(self, Iterable[QAction])

adjustSize(self)

autoFillBackground(self)

backgroundRole(self)

baseSize(self)

blockSignals(self, bool)

changeEvent(self, QEvent)

childAt(-> QWidget)

childEvent(self, QChildEvent)

children(self)

childrenRect(self)

childrenRegion(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, QCloseEvent)

colorCount(self)

connectNotify(self, QMetaMethod)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, QContextMenuEvent)

contextMenuPolicy(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(QWindow[, parent, flags])

cursor(self)

customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

destroyed

QObject = None) [signal]

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dragEnterEvent(self, QDragEnterEvent)

dragLeaveEvent(self, QDragLeaveEvent)

dragMoveEvent(self, QDragMoveEvent)

dropEvent(self, QDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

effectiveWinId(self)

ensurePolished(self)

enterEvent(self, QEvent)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

find(PyQt5.sip.voidptr)

findChild(-> QObject)

findChildren(...)

focusInEvent(self, QFocusEvent)

focusNextChild(self)

focusNextPrevChild(self, bool)

focusOutEvent(self, QFocusEvent)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundRole(self)

frameGeometry(self)

frameSize(self)

geometry(self)

getContentsMargins(self)

grab(self[, rectangle])

grabGesture(self, Qt.GestureType, flags, ...)

grabKeyboard(self)

grabMouse(grabMouse)

grabShortcut(self, Union[QKeySequence, ...)

graphicsEffect(self)

graphicsProxyWidget(self)

hasFocus(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, int)

heightMM(self)

hide(self)

hideEvent(self, QHideEvent)

inherits(self, str)

initPainter(self, QPainter)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

insertAction(self, QAction, QAction)

insertActions(self, QAction, Iterable[QAction])

installEventFilter(self, QObject)

isActiveWindow(self)

isAncestorOf(self, QWidget)

isEnabled(self)

isEnabledTo(self, QWidget)

isFullScreen(self)

isHidden(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isRightToLeft(self)

isSignalConnected(self, QMetaMethod)

isVisible(self)

isVisibleTo(self, QWidget)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

keyboardGrabber()

killTimer(self, int)

layout(self)

layoutDirection(self)

leaveEvent(self, QEvent)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(self, QWidget, QPoint)

mapFromGlobal(self, QPoint)

mapFromParent(self, QPoint)

mapTo(self, QWidget, QPoint)

mapToGlobal(self, QPoint)

mapToParent(self, QPoint)

mask(self)

maximumHeight(self)

maximumSize(self)

maximumWidth(self)

metaObject(self)

metric(self, QPaintDevice.PaintDeviceMetric)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

mouseDoubleClickEvent(self, QMouseEvent)

mouseGrabber()

mouseMoveEvent(self, QMouseEvent)

mousePressEvent(self, QMouseEvent)

mouseReleaseEvent(self, QMouseEvent)

move(move)

moveEvent(self, QMoveEvent)

moveToThread(self, QThread)

nativeEvent(self, Union[QByteArray, bytes, ...)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

overrideWindowFlags(self, ...)

overrideWindowState(self, ...)

paintEngine(self)

paintEvent(self, QPaintEvent)

paintingActive(self)

palette(self)

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

pos(self)

previousInFocusChain(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, PYQT_SIGNAL)

rect(self)

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, int)

removeAction(self, QAction)

removeEventFilter(self, QObject)

render(, sourceRegion, flags, ...)

repaint(...)

resize(resize)

resizeEvent(self, QResizeEvent)

restoreGeometry(self, Union[QByteArray, ...)

saveGeometry(self)

screen(self)

scroll(scroll)

sender(self)

senderSignalIndex(self)

setAcceptDrops(self, bool)

setAccessibleDescription(self, str)

setAccessibleName(self, str)

setAttribute(self, Qt.WidgetAttribute, on)

setAutoFillBackground(self, bool)

setBackgroundRole(self, QPalette.ColorRole)

setBaseSize(setBaseSize)

setContentsMargins(setContentsMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)

setCursor(self, Union[QCursor, Qt.CursorShape])

setDisabled(self, bool)

setEnabled(self, bool)

setFixedHeight(self, int)

setFixedSize(setFixedSize)

setFixedWidth(self, int)

setFocus(setFocus)

setFocusPolicy(self, Qt.FocusPolicy)

setFocusProxy(self, QWidget)

setFont(self, QFont)

setForegroundRole(self, QPalette.ColorRole)

setGeometry(setGeometry)

setGraphicsEffect(self, QGraphicsEffect)

setHidden(self, bool)

setInputMethodHints(self, ...)

setLayout(self, QLayout)

setLayoutDirection(self, Qt.LayoutDirection)

setLocale(self, QLocale)

setMask(setMask)

setMaximumHeight(self, int)

setMaximumSize(setMaximumSize)

setMaximumWidth(self, int)

setMinimumHeight(self, int)

setMinimumSize(setMinimumSize)

setMinimumWidth(self, int)

setMouseTracking(self, bool)

setObjectName(self, str)

setPalette(self, QPalette)

setParent(setParent)

setProperty(self, str, Any)

setShortcutAutoRepeat(self, int[, enabled])

setShortcutEnabled(self, int[, enabled])

setSizeIncrement(setSizeIncrement)

setSizePolicy(setSizePolicy)

setStatusTip(self, str)

setStyle(self, QStyle)

setStyleSheet(self, str)

setTabOrder(QWidget, QWidget)

setTabletTracking(self, bool)

setToolTip(self, str)

setToolTipDuration(self, int)

setUpdatesEnabled(self, bool)

setVisible(self, bool)

setWhatsThis(self, str)

setWindowFilePath(self, str)

setWindowFlag(self, Qt.WindowType, on)

setWindowFlags(self, Union[Qt.WindowFlags, ...)

setWindowIcon(self, QIcon)

setWindowIconText(self, str)

setWindowModality(self, Qt.WindowModality)

setWindowModified(self, bool)

setWindowOpacity(self, float)

setWindowRole(self, str)

setWindowState(self, Union[Qt.WindowStates, ...)

setWindowTitle(self, str)

sharedPainter(self)

show(self)

showEvent(self, QShowEvent)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

signalsBlocked(self)

size(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

stackUnder(self, QWidget)

startTimer(self, int[, timerType])

statusTip(self)

style(self)

styleSheet(self)

tabletEvent(self, QTabletEvent)

testAttribute(self, Qt.WidgetAttribute)

thread(self)

timerEvent(self, QTimerEvent)

toolTip(self)

toolTipDuration(self)

tr(self, str[, disambiguation, n])

underMouse(self)

ungrabGesture(self, Qt.GestureType)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update(update update update  -> None  -> None)

updateGeometry(self)

updateMicroFocus(self)

updatesEnabled(self)

visibleRegion(self)

whatsThis(self)

wheelEvent(self, QWheelEvent)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self)

windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self)

x(self)

y(self)

class utils.shared_classes.MonitorConvergence(parent: QObject = None)[source]

Bases: QThread

Methods

Priority

blockSignals(self, bool)

childEvent(self, QChildEvent)

children(self)

connectNotify(self, QMetaMethod)

currentThread()

currentThreadId()

customEvent(self, QEvent)

deleteLater(self)

destroyed

QObject = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, QEvent)

eventDispatcher(self)

eventFilter(self, QObject, QEvent)

exec(self)

exec_(self)

exit(self[, returnCode])

findChild(-> QObject)

findChildren(...)

finished

finished(self) [signal]

idealThreadCount()

inherits(self, str)

installEventFilter(self, QObject)

isFinished(self)

isInterruptionRequested(self)

isRunning(self)

isSignalConnected(self, QMetaMethod)

isWidgetType(self)

isWindowType(self)

killTimer(self, int)

loopLevel(self)

metaObject(self)

moveToThread(self, QThread)

msleep(int)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

parent(self)

priority(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

quit(self)

receivers(self, PYQT_SIGNAL)

removeEventFilter(self, QObject)

requestInterruption(self)

run(self)

sender(self)

senderSignalIndex(self)

setEventDispatcher(self, ...)

setObjectName(self, str)

setParent(self, QObject)

setPriority(self, QThread.Priority)

setProperty(self, str, Any)

setStackSize(self, int)

setTerminationEnabled([enabled])

signalsBlocked(self)

sleep(int)

stackSize(self)

start(self[, priority])

startTimer(self, int[, timerType])

started

started(self) [signal]

terminate(self)

thread(self)

timerEvent(self, QTimerEvent)

tr(self, str[, disambiguation, n])

usleep(int)

wait(-> bool)

yieldCurrentThread()

monitor_convergence

sig

monitor_convergence()[source]
run(self)[source]
sig
class utils.shared_classes.ProgressMonitor(parent: QObject = None)[source]

Bases: QThread

Methods

Priority

blockSignals(self, bool)

childEvent(self, QChildEvent)

children(self)

connectNotify(self, QMetaMethod)

currentThread()

currentThreadId()

customEvent(self, QEvent)

deleteLater(self)

destroyed

QObject = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, QEvent)

eventDispatcher(self)

eventFilter(self, QObject, QEvent)

exec(self)

exec_(self)

exit(self[, returnCode])

findChild(-> QObject)

findChildren(...)

finished

finished(self) [signal]

idealThreadCount()

inherits(self, str)

installEventFilter(self, QObject)

isFinished(self)

isInterruptionRequested(self)

isRunning(self)

isSignalConnected(self, QMetaMethod)

isWidgetType(self)

isWindowType(self)

killTimer(self, int)

loopLevel(self)

metaObject(self)

moveToThread(self, QThread)

msleep(int)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

parent(self)

priority(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

quit(self)

receivers(self, PYQT_SIGNAL)

removeEventFilter(self, QObject)

requestInterruption(self)

run(self)

sender(self)

senderSignalIndex(self)

setEventDispatcher(self, ...)

setObjectName(self, str)

setParent(self, QObject)

setPriority(self, QThread.Priority)

setProperty(self, str, Any)

setStackSize(self, int)

setTerminationEnabled([enabled])

signalsBlocked(self)

sleep(int)

stackSize(self)

start(self[, priority])

startTimer(self, int[, timerType])

started

started(self) [signal]

terminate(self)

thread(self)

timerEvent(self, QTimerEvent)

tr(self, str[, disambiguation, n])

usleep(int)

wait(-> bool)

yieldCurrentThread()

progress_monitor

sig

progress_monitor(proc_ids)[source]
run(self)[source]
sig
class utils.shared_classes.QCheckableComboBox(parent: QWidget = None)[source]

Bases: QComboBox

Methods

Delegate([parent])

Methods

InsertPolicy

PaintDeviceMetric

RenderFlag

RenderFlags(...)

SizeAdjustPolicy

acceptDrops(self)

accessibleDescription(self)

accessibleName(self)

actionEvent(self, QActionEvent)

actions(self)

activateWindow(self)

activated

activated(self, int) [signal] activated(self, str) [signal]

addAction(self, QAction)

addActions(self, Iterable[QAction])

addItem(addItem)

addItems(self, Iterable[str])

adjustSize(self)

autoFillBackground(self)

backgroundRole(self)

baseSize(self)

blockSignals(self, bool)

changeEvent(self, QEvent)

childAt(-> QWidget)

childEvent(self, QChildEvent)

children(self)

childrenRect(self)

childrenRegion(self)

clear(self)

clearEditText(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, QCloseEvent)

colorCount(self)

completer(self)

connectNotify(self, QMetaMethod)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, QContextMenuEvent)

contextMenuPolicy(self)

count(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(QWindow[, parent, flags])

currentData(self[, role])

currentIndex(self)

currentIndexChanged

currentIndexChanged(self, int) [signal] currentIndexChanged(self, str) [signal]

currentText(self)

currentTextChanged

currentTextChanged(self, str) [signal]

cursor(self)

customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

destroyed

QObject = None) [signal]

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dragEnterEvent(self, QDragEnterEvent)

dragLeaveEvent(self, QDragLeaveEvent)

dragMoveEvent(self, QDragMoveEvent)

dropEvent(self, QDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

duplicatesEnabled(self)

dynamicPropertyNames(self)

editTextChanged

editTextChanged(self, str) [signal]

effectiveWinId(self)

ensurePolished(self)

enterEvent(self, QEvent)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

find(PyQt5.sip.voidptr)

findChild(-> QObject)

findChildren(...)

findData(self, Any[, role, flags])

findText(self, str[, flags])

focusInEvent(self, QFocusEvent)

focusNextChild(self)

focusNextPrevChild(self, bool)

focusOutEvent(self, QFocusEvent)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundRole(self)

frameGeometry(self)

frameSize(self)

geometry(self)

getContentsMargins(self)

grab(self[, rectangle])

grabGesture(self, Qt.GestureType, flags, ...)

grabKeyboard(self)

grabMouse(grabMouse)

grabShortcut(self, Union[QKeySequence, ...)

graphicsEffect(self)

graphicsProxyWidget(self)

hasFocus(self)

hasFrame(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, int)

heightMM(self)

hide(self)

hideEvent(self, QHideEvent)

hidePopup(self)

highlighted

highlighted(self, int) [signal] highlighted(self, str) [signal]

iconSize(self)

inherits(self, str)

initPainter(self, QPainter)

initStyleOption(self, QStyleOptionComboBox)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(-> Any)

insertAction(self, QAction, QAction)

insertActions(self, QAction, Iterable[QAction])

insertItem(insertItem)

insertItems(self, int, Iterable[str])

insertPolicy(self)

insertSeparator(self, int)

installEventFilter(self, QObject)

isActiveWindow(self)

isAncestorOf(self, QWidget)

isEditable(self)

isEnabled(self)

isEnabledTo(self, QWidget)

isFullScreen(self)

isHidden(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isRightToLeft(self)

isSignalConnected(self, QMetaMethod)

isVisible(self)

isVisibleTo(self, QWidget)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

itemData(self, int[, role])

itemDelegate(self)

itemIcon(self, int)

itemText(self, int)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

keyboardGrabber()

killTimer(self, int)

layout(self)

layoutDirection(self)

leaveEvent(self, QEvent)

lineEdit(self)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(self, QWidget, QPoint)

mapFromGlobal(self, QPoint)

mapFromParent(self, QPoint)

mapTo(self, QWidget, QPoint)

mapToGlobal(self, QPoint)

mapToParent(self, QPoint)

mask(self)

maxCount(self)

maxVisibleItems(self)

maximumHeight(self)

maximumSize(self)

maximumWidth(self)

metaObject(self)

metric(self, QPaintDevice.PaintDeviceMetric)

minimumContentsLength(self)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

model(self)

modelColumn(self)

mouseDoubleClickEvent(self, QMouseEvent)

mouseGrabber()

mouseMoveEvent(self, QMouseEvent)

mousePressEvent(self, QMouseEvent)

mouseReleaseEvent(self, QMouseEvent)

move(move)

moveEvent(self, QMoveEvent)

moveToThread(self, QThread)

nativeEvent(self, Union[QByteArray, bytes, ...)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

overrideWindowFlags(self, ...)

overrideWindowState(self, ...)

paintEngine(self)

paintEvent(self, QPaintEvent)

paintingActive(self)

palette(self)

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

placeholderText(self)

pos(self)

previousInFocusChain(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, PYQT_SIGNAL)

rect(self)

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, int)

removeAction(self, QAction)

removeEventFilter(self, QObject)

removeItem(self, int)

render(, sourceRegion, flags, ...)

repaint(...)

resize(resize)

resizeEvent(self, QResizeEvent)

restoreGeometry(self, Union[QByteArray, ...)

rootModelIndex(self)

saveGeometry(self)

screen(self)

scroll(scroll)

sender(self)

senderSignalIndex(self)

setAcceptDrops(self, bool)

setAccessibleDescription(self, str)

setAccessibleName(self, str)

setAttribute(self, Qt.WidgetAttribute, on)

setAutoFillBackground(self, bool)

setBackgroundRole(self, QPalette.ColorRole)

setBaseSize(setBaseSize)

setCompleter(self, QCompleter)

setContentsMargins(setContentsMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)

setCurrentIndex(self, int)

setCurrentText(self, str)

setCursor(self, Union[QCursor, Qt.CursorShape])

setDisabled(self, bool)

setDuplicatesEnabled(self, bool)

setEditText(self, str)

setEditable(self, bool)

setEnabled(self, bool)

setFixedHeight(self, int)

setFixedSize(setFixedSize)

setFixedWidth(self, int)

setFocus(setFocus)

setFocusPolicy(self, Qt.FocusPolicy)

setFocusProxy(self, QWidget)

setFont(self, QFont)

setForegroundRole(self, QPalette.ColorRole)

setFrame(self, bool)

setGeometry(setGeometry)

setGraphicsEffect(self, QGraphicsEffect)

setHidden(self, bool)

setIconSize(self, QSize)

setInputMethodHints(self, ...)

setInsertPolicy(self, QComboBox.InsertPolicy)

setItemData(self, int, Any[, role])

setItemDelegate(self, QAbstractItemDelegate)

setItemIcon(self, int, QIcon)

setItemText(self, int, str)

setLayout(self, QLayout)

setLayoutDirection(self, Qt.LayoutDirection)

setLineEdit(self, QLineEdit)

setLocale(self, QLocale)

setMask(setMask)

setMaxCount(self, int)

setMaxVisibleItems(self, int)

setMaximumHeight(self, int)

setMaximumSize(setMaximumSize)

setMaximumWidth(self, int)

setMinimumContentsLength(self, int)

setMinimumHeight(self, int)

setMinimumSize(setMinimumSize)

setMinimumWidth(self, int)

setModel(self, QAbstractItemModel)

setModelColumn(self, int)

setMouseTracking(self, bool)

setObjectName(self, str)

setPalette(self, QPalette)

setParent(setParent)

setPlaceholderText(self, str)

setProperty(self, str, Any)

setRootModelIndex(self, QModelIndex)

setShortcutAutoRepeat(self, int[, enabled])

setShortcutEnabled(self, int[, enabled])

setSizeAdjustPolicy(self, ...)

setSizeIncrement(setSizeIncrement)

setSizePolicy(setSizePolicy)

setStatusTip(self, str)

setStyle(self, QStyle)

setStyleSheet(self, str)

setTabOrder(QWidget, QWidget)

setTabletTracking(self, bool)

setToolTip(self, str)

setToolTipDuration(self, int)

setUpdatesEnabled(self, bool)

setValidator(self, QValidator)

setView(self, QAbstractItemView)

setVisible(self, bool)

setWhatsThis(self, str)

setWindowFilePath(self, str)

setWindowFlag(self, Qt.WindowType, on)

setWindowFlags(self, Union[Qt.WindowFlags, ...)

setWindowIcon(self, QIcon)

setWindowIconText(self, str)

setWindowModality(self, Qt.WindowModality)

setWindowModified(self, bool)

setWindowOpacity(self, float)

setWindowRole(self, str)

setWindowState(self, Union[Qt.WindowStates, ...)

setWindowTitle(self, str)

sharedPainter(self)

show(self)

showEvent(self, QShowEvent)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

showPopup(self)

signalsBlocked(self)

size(self)

sizeAdjustPolicy(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

stackUnder(self, QWidget)

startTimer(self, int[, timerType])

statusTip(self)

style(self)

styleSheet(self)

tabletEvent(self, QTabletEvent)

testAttribute(self, Qt.WidgetAttribute)

textActivated

textActivated(self, str) [signal]

textHighlighted

textHighlighted(self, str) [signal]

thread(self)

timerEvent(self, QTimerEvent)

toolTip(self)

toolTipDuration(self)

tr(self, str[, disambiguation, n])

underMouse(self)

ungrabGesture(self, Qt.GestureType)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update(update update update  -> None  -> None)

updateGeometry(self)

updateMicroFocus(self)

updatesEnabled(self)

validator(self)

view(self)

visibleRegion(self)

whatsThis(self)

wheelEvent(self, QWheelEvent)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self)

windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self)

x(self)

y(self)

updateText

class Delegate(parent: QObject = None)[source]

Bases: QStyledItemDelegate

Methods

EndEditHint

blockSignals(self, bool)

childEvent(self, QChildEvent)

children(self)

closeEditor

QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal]

commitData

commitData(self, QWidget) [signal]

connectNotify(self, QMetaMethod)

createEditor(self, QWidget, ...)

customEvent(self, QEvent)

deleteLater(self)

destroyEditor(self, QWidget, QModelIndex)

destroyed

QObject = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

displayText(self, Any, QLocale)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

editorEvent(self, QEvent, ...)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

findChild(-> QObject)

findChildren(...)

helpEvent(self, QHelpEvent, ...)

inherits(self, str)

initStyleOption(self, QStyleOptionViewItem, ...)

installEventFilter(self, QObject)

isSignalConnected(self, QMetaMethod)

isWidgetType(self)

isWindowType(self)

itemEditorFactory(self)

killTimer(self, int)

metaObject(self)

moveToThread(self, QThread)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

paint(self, QPainter, QStyleOptionViewItem, ...)

parent(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

receivers(self, PYQT_SIGNAL)

removeEventFilter(self, QObject)

sender(self)

senderSignalIndex(self)

setEditorData(self, QWidget, QModelIndex)

setItemEditorFactory(self, QItemEditorFactory)

setModelData(self, QWidget, ...)

setObjectName(self, str)

setParent(self, QObject)

setProperty(self, str, Any)

signalsBlocked(self)

sizeHint(self, QStyleOptionViewItem, QModelIndex)

sizeHintChanged

sizeHintChanged(self, QModelIndex) [signal]

startTimer(self, int[, timerType])

thread(self)

timerEvent(self, QTimerEvent)

tr(self, str[, disambiguation, n])

updateEditorGeometry(self, QWidget, ...)

sizeHint(self, QStyleOptionViewItem, QModelIndex) QSize[source]
addItem(self, str, userData: Any = None) addItem(self, QIcon, str, userData: Any = None)[source]
addItem(self, QIcon, str, userData: Any = None) None
addItems(self, Iterable[str])[source]
currentData(self, role: int = Qt.ItemDataRole.UserRole) Any[source]
eventFilter(self, QObject, QEvent) bool[source]
hidePopup(self)[source]
resizeEvent(self, QResizeEvent)[source]
showPopup(self)[source]
timerEvent(self, QTimerEvent)[source]
updateText()[source]
utils.shared_classes.print_(*arg)[source]

utils.shared_functions module

utils.shared_functions.animate_height(widget, min_height, standard, enable, option='max')[source]
Parameters
  • widget (QWidget) – QWidget

  • min_height (float) – Minimum width

  • standard (float) – Default size

  • enable

  • option

utils.shared_functions.animate_width(widget, min_width, standard, enable, option='max')[source]
Parameters
  • widget (QWidget) – QWidget

  • min_width (float) – Minimum width

  • standard (float) – Default size

  • enable

  • option

utils.shared_functions.arcTo(x_center, y_center, a, b, step, start, end, plot=False)[source]
utils.shared_functions.arcTo2(x_center, y_center, a, b, step, start_angle, end_angle, plot=False)[source]
utils.shared_functions.button_clicked(button)[source]

Return text on button clicked

Parameters

button (QPushButton) – PyQt object

Return type

String containing text on PyQt object

utils.shared_functions.calculate_alpha(A, B, a, b, Ri, L, Req, L_bp)[source]

Calculates the largest angle the tangent line of two ellipses makes with the horizontal axis

Parameters
  • A (float) –

  • B (float) –

  • a (float) –

  • b (float) –

  • Ri (float) –

  • L (float) –

  • Req (float) –

  • L_bp (float) –

Returns

  • alpha (float) – Largest angle the tangent line of two ellipses makes with the horizontal axis

  • error_msg (int) – State of the iteration, failed or successful. Refer to

utils.shared_functions.ellipse_tangent(z, *data)[source]

Calculates the coordinates of the tangent line that connects two ellipses

ellipse tangent
Parameters
  • z (list, array like) – Contains list of tangent points coordinate’s variables [x1, y1, x2, y2]. See ellipse tangent

  • data (list, array like) – Contains midpoint coordinates of the two ellipses and the dimensions of the ellipses data = [coords, dim]; coords = [h, k, p, q], dim = [a, b, A, B]

Return type

list of four non-linear functions

Note

The four returned non-linear functions are

\[ \begin{align}\begin{aligned}f_1 = \frac{A^2b^2(x_1 - h)(y_2-q)}{a^2B^2(x_2-p)(y_1-k)} - 1\\f_2 = \frac{(x_1 - h)^2}{a^2} + \frac{(y_1-k)^2}{b^2} - 1\\f_3 = \frac{(x_2 - p)^2}{A^2} + \frac{(y_2-q)^2}{B^2} - 1\\f_4 = \frac{-b^2(x_1-x_2)(x_1-h)}{a^2(y_1-y_2)(y_1-k)} - 1\end{aligned}\end{align} \]
utils.shared_functions.f2b_slashes(path)[source]

Replaces forward slashes with backward slashes for windows OS

Parameters

path (str) – Directory path

utils.shared_functions.get_geometric_parameters(frame_control, code)[source]
utils.shared_functions.jac(z, *data)[source]

Computes the Jacobian of the non-linear system of ellipse tangent equations

Parameters
  • z (list, array like) – Contains list of tangent points coordinate’s variables [x1, y1, x2, y2]. See ellipse tangent

  • data (list, array like) – Contains midpoint coordinates of the two ellipses and the dimensions of the ellipses data = [coords, dim]; coords = [h, k, p, q], dim = [a, b, A, B]

Returns

J – Array of the Jacobian

Return type

array like

utils.shared_functions.lineTo(prevPt, nextPt, step, plot=False)[source]
utils.shared_functions.linspace(start, stop, step=1.0)[source]

Like np.linspace but uses step instead of num This is inclusive to stop, so if start=1, stop=3, step=0.5 Output is: array([1., 1.5, 2., 2.5, 3.])

utils.shared_functions.load_shape_space(filename)[source]

Loads shape space file to Python dictionary object

Appears to have no usage

Parameters

filename (str) – Absolute path of shape space file

Return type

Python dictionary object of shape space

utils.shared_functions.normal_dist(x, mean, sd)[source]
utils.shared_functions.open_file(frame_control, le, cb, start_folder='')[source]
utils.shared_functions.perform_geometry_checks(par_mid, par_end)[source]

Checks geometry to filter out low loss cavity geometries

Parameters
  • par_mid (list, array like) – Mid cell parameters of cavity

  • par_end (list, array like) – End cell parameters of cavity

Return type

bool

utils.shared_functions.quad_stroud3(rdim, degree)[source]

Stroud-3 quadrature in \([0,1]^k\)

Parameters
  • rdim (int) – Dimension of variables

  • degree (int) – Degree

Return type

Nodes and corresponding weights

utils.shared_functions.quad_stroud5(rdim, degree)[source]
utils.shared_functions.stroud(p)[source]

Stroud-3 method

Parameters

p (int) – Dimension

Return type

Nodes of quadrature rule in [0,1]**p (column-wise)

utils.shared_functions.tangent_coords(A, B, a, b, Ri, L, Req, L_bp, tangent_check=False)[source]
utils.shared_functions.text_to_list(txt)[source]
utils.shared_functions.text_to_list_(ll)[source]
utils.shared_functions.text_to_list__(ll)[source]

Convert text input to list

Parameters

ll (str) – Input text

Return type

List

utils.shared_functions.update_alpha(cell)[source]

Update geometry json file variables to include the value of alpha

Parameters

cell – Cavity geometry parameters

Return type

List of cavity geometry parameters

utils.shared_functions.uq(key, shape, qois, n_cells, n_modules, n_modes, f_shift, bc, parentDir, projectDir)[source]
utils.shared_functions.weighted_mean_obj(tab_var, weights)[source]
utils.shared_functions.write_cavity_for_custom_eig_solver(file_path, n_cell, mid_cell, end_cell_left=None, end_cell_right=None, beampipe='none', plot=False)[source]
utils.shared_functions.write_cst_paramters(key, ic_, oc, projectDir, cell_type)[source]

Writes cavity geometric data that can be imported into CST Studio

Parameters
  • key (str, int) – Cavity marker

  • ic (list, array like) – Inner cavity cell geometric variables

  • oc (list, array like) – Outer cavity cell geometric variables

  • projectDir (str) – Project directory

  • cell_type (str) – Single cell or multicell

utils.test module

utils.test.create_cst_sweep_import_random(p, v, v_int)[source]
utils.test.create_cst_sweep_import_sobol_sequence(dim, index, columns, l_bounds, u_bounds)[source]
utils.test.ellipse_tangent_(z, *data)[source]

Calculates the coordinates of the tangent line that connects two ellipses

ellipse tangent
Parameters
  • z (list, array like) – Contains list of tangent points coordinate’s variables [x1, y1, x2, y2]. See ellipse tangent

  • data (list, array like) – Contains midpoint coordinates of the two ellipses and the dimensions of the ellipses data = [coords, dim]; coords = [h, k, p, q], dim = [a, b, A, B]

Return type

list of four non-linear functions

Note

The four returned non-linear functions are

\[ \begin{align}\begin{aligned}f_1 = \frac{A^2b^2(x_1 - h)(y_2-q)}{a^2B^2(x_2-p)(y_1-k)} - 1\\f_2 = \frac{(x_1 - h)^2}{a^2} + \frac{(y_1-k)^2}{b^2} - 1\\f_3 = \frac{(x_2 - p)^2}{A^2} + \frac{(y_2-q)^2}{B^2} - 1\\f_4 = \frac{-b^2(x_1-x_2)(x_1-h)}{a^2(y_1-y_2)(y_1-k)} - 1\end{aligned}\end{align} \]
utils.test.func(x)[source]
utils.test.jac(z, *data)[source]
utils.test.plot_bar_double()[source]
utils.test.plot_bar_single()[source]
utils.test.plot_settings()[source]

utils.wakefield_study_delete module

utils.write_geometry module

utils.write_geometry.arcTo(x_center, y_center, a, b, step, start, end)[source]
utils.write_geometry.arcTo2(x_center, y_center, a, b, step, start_angle, end_angle)[source]
utils.write_geometry.f(z, *data)[source]
utils.write_geometry.lineTo(prevPt, nextPt, step)[source]
utils.write_geometry.linspace(start, stop, step=1.0)[source]

Like np.linspace but uses step instead of num This is inclusive to stop, so if start=1, stop=3, step=0.5 Output is: array([1., 1.5, 2., 2.5, 3.])

utils.write_geometry.writeCavity(key, mid_cell, lend_cell, rend_cell, beampipe)[source]

utils.write_geometry_boundary_multipac module

utils.write_geometry_boundary_multipac.arcTo(x_center, y_center, a, b, step, start, end)[source]
utils.write_geometry_boundary_multipac.arcTo2(x_center, y_center, a, b, step, start_angle, end_angle)[source]
utils.write_geometry_boundary_multipac.drawCapacitor()[source]
utils.write_geometry_boundary_multipac.drawCavity()[source]
utils.write_geometry_boundary_multipac.f(z, *data)[source]
utils.write_geometry_boundary_multipac.lineTo(prevPt, nextPt, step)[source]
utils.write_geometry_boundary_multipac.linspace(start, stop, step=1.0)[source]

Like np.linspace but uses step instead of num This is inclusive to stop, so if start=1, stop=3, step=0.5 Output is: array([1., 1.5, 2., 2.5, 3.])

utils.write_geometry_end_cell module

utils.write_geometry_end_cell.arcTo(x_center, y_center, a, b, step, start, end)[source]
utils.write_geometry_end_cell.arcTo2(x_center, y_center, a, b, step, start_angle, end_angle)[source]
utils.write_geometry_end_cell.drawCavity()[source]
utils.write_geometry_end_cell.f(z, *data)[source]
utils.write_geometry_end_cell.lineTo(prevPt, nextPt, step)[source]
utils.write_geometry_end_cell.linspace(start, stop, step=1.0)[source]

Like np.linspace but uses step instead of num This is inclusive to stop, so if start=1, stop=3, step=0.5 Output is: array([1., 1.5, 2., 2.5, 3.])

utils.write_geometry_whole_cell module

utils.write_geometry_whole_cell.arcTo(x_center, y_center, a, b, step, start, end)[source]
utils.write_geometry_whole_cell.arcTo2(x_center, y_center, a, b, step, start_angle, end_angle)[source]
utils.write_geometry_whole_cell.drawCavity()[source]
utils.write_geometry_whole_cell.drawCavity_flat_top()[source]
utils.write_geometry_whole_cell.f(z, *data)[source]
utils.write_geometry_whole_cell.lineTo(prevPt, nextPt, step)[source]
utils.write_geometry_whole_cell.linspace(start, stop, step=1.0)[source]

Like np.linspace but uses step instead of num This is inclusive to stop, so if start=1, stop=3, step=0.5 Output is: array([1., 1.5, 2., 2.5, 3.])

Module contents