siriushla.as_ps_diag
Code Documentation
siriushla.as_ps_diag.main module
Interface to handle power supply diagnostic.
- class siriushla.as_ps_diag.main.LogTable(parent=None, channels=[], label2width={}, is_status=False)[source]
Bases:
QTreeView,PyDMWidgetLog Table.
- RULE_PROPERTIES = {'Enable': ['setEnabled', <class 'bool'>], 'Opacity': ['set_opacity', <class 'float'>], 'Position - X': ['setX', <class 'int'>], 'Position - Y': ['setY', <class 'int'>], 'Visible': ['setVisible', <class 'bool'>]}
- 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
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:
PyDMLedMonitor Led.
- RULE_PROPERTIES = {'Enable': ['setEnabled', <class 'bool'>], 'Opacity': ['set_opacity', <class 'float'>], 'Position - X': ['setX', <class 'int'>], 'Position - Y': ['setY', <class 'int'>], 'Visible': ['setVisible', <class 'bool'>]}
- default_colorlist = [<PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>]
- 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
bitis 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.
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:
SiriusWaveformPlotPower supply data graph.
- 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:
QWidgetPower 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:
QWidgetPower supply graph monitor widget.
- 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
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphMonWindow(parent=None, prefix=siriuspy.envars.VACA_PREFIX, filters='')[source]
Bases:
_SiriusWindowPower supply graph monitor window.
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphProptySelWidget(parent)[source]
Bases:
QWidgetPower 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']
- 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.