siriushla.as_ps_diag

Code Documentation

siriushla.as_ps_diag.main module

Interface to handle power supply diagnostic.

class siriushla.as_ps_diag.main.LogItemDelegate[source]

Bases: QItemDelegate

Log Item Delegate.

paint(painter, option, index)[source]

Paint.

class siriushla.as_ps_diag.main.LogTable(parent=None, channels=[], label2width={}, is_status=False)[source]

Bases: QTreeView, PyDMWidget

Log Table.

add_log(new_value)[source]
add_log_slot(updated)[source]
alarm_severity_changed(new_alarm_severity)[source]

Reimplement alarm_severity_changed.

connection_changed(conn)[source]

Reimplement connection_changed to handle all channels.

mouseDoubleClickEvent(ev)[source]

Trigger open PS detail window.

remove_log(new_value)[source]
remove_log_slot(updated)[source]
updated

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

siriushla.as_ps_diag.main.MyLedMultiChannel

alias of MyLed

siriushla.as_ps_diag.main.MyLedMultiConnection

alias of MyLed

class siriushla.as_ps_diag.main.PSDiag(parent=None, prefix=siriuspy.envars.VACA_PREFIX)[source]

Bases: _SiriusWindow

Power Supply Diagnostic.

siriushla.as_ps_diag.main.create_led_class(type='multichannel')[source]

siriushla.as_ps_diag.monitor module

Interface to handle general status.

class siriushla.as_ps_diag.monitor.MyLed(parent=None, init_channel=None, init_tooltip='', **kws)[source]

Bases: PyDMLed

Monitor Led.

default_colorlist = [<PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>]
mouseDoubleClickEvent(_)[source]

Reimplement mouseDoubleClickEvent.

mousePressEvent(event)[source]

Reimplement mousePressEvent.

value_changed(new_val)[source]

Receive new value and set led color accordingly.

For int or float data type the standard led behaviour is to be red when the value is 0, and green otherwise.

If a bit is set the value received will be treated as an int and the bit value is extracted using a mask. The led represents the value of the chosen bit.

class siriushla.as_ps_diag.monitor.PSMonitor(parent=None, prefix=siriuspy.envars.VACA_PREFIX, get_label2devices_method=None, get_dev2sublabels_method=None, get_col2devcount_method=None, get_sec2devlaypos_method=None)[source]

Bases: QWidget

PS Monitor.

siriushla.as_ps_diag.ps_graph_mon module

PS Graph Monitor.

class siriushla.as_ps_diag.ps_graph_mon.PSGraph(parent=None, psnames=[], y_data=[], symbols=[], color='blue')[source]

Bases: SiriusWaveformPlot

Power supply data graph.

mouseDoubleClickEvent(event)[source]

Reimplement mouseDoubleClickEvent.

mouseMoveEvent(event)[source]

Reimplement mouseMoveEvent.

property psnames

Return psnames.

property sector

Return sector.

property symbols

Return symbols.

property tooltips

Return tooltips.

property x_data

Return x_data.

property y_data

Return y_data.

class siriushla.as_ps_diag.ps_graph_mon.PSGraphDevicesSelWidget(parent, psnames)[source]

Bases: QWidget

Power supply selection widget.

matype_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

psnames_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

class siriushla.as_ps_diag.ps_graph_mon.PSGraphMonWidget(parent=None, prefix=siriuspy.envars.VACA_PREFIX, psnames='')[source]

Bases: QWidget

Power supply graph monitor widget.

contextMenuEvent(event, return_menu=False)[source]

Show a custom context menu.

propLineChanged

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

propSymbChanged

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

psnamesChanged

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

update_property_line(text)[source]

Update property line.

update_property_symb(text)[source]

Update property symbol.

update_psnames(psnames)[source]

Update psnames.

class siriushla.as_ps_diag.ps_graph_mon.PSGraphMonWindow(parent=None, prefix=siriuspy.envars.VACA_PREFIX, filters='')[source]

Bases: _SiriusWindow

Power supply graph monitor window.

contextMenuEvent(event)[source]

.

show_connections(checked)[source]

.

class siriushla.as_ps_diag.ps_graph_mon.PSGraphProptySelWidget(parent)[source]

Bases: QWidget

Power supply property selection widget.

PROP_LINE_DEFAULT = ['Current-Mon', 'Current-SP', 'Current-RB', 'CurrentRef-Mon', 'DiagCurrentDiff-Mon', 'WfmSyncPulseCount-Mon', 'PRUCtrlQueueSize-Mon']
PROP_LINE_FASTCORR = ['Current-Mon', 'Current-SP', 'Current-RB', 'CurrentRef-Mon', 'DiagCurrentDiff-Mon']
PROP_SYMB_DEFAULT = ['DiagStatus-Mon', 'IntlkSoft-Mon', 'IntlkHard-Mon', 'PwrState-Sel', 'PwrState-Sts', 'OpMode-Sel', 'OpMode-Sts', 'CtrlMode-Mon', 'CtrlLoop-Sel', 'CtrlLoop-Sts', 'CycleEnbl-Mon']
PROP_SYMB_FASTCORR = ['DiagStatus-Mon', 'AlarmsAmp-Mon', 'AlarmsAmpLtc-Mon', 'PwrState-Sel', 'PwrState-Sts']
change_matype(magfunc, pstype)[source]

Change MA type.

propty_line_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

propty_symb_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

siriushla.as_ps_diag.util module

Util module.

siriushla.as_ps_diag.util.get_col2dev_count(sec, label)[source]
siriushla.as_ps_diag.util.get_dev2sub_labels(label)[source]
siriushla.as_ps_diag.util.get_label2devices(sec)[source]
siriushla.as_ps_diag.util.get_sec2dev_laypos(sec, label)[source]

Module contents