siriushla.as_ps_control.detail_widget
Code Documentation
siriushla.as_ps_control.detail_widget.DetailWidgetFactory module
This module defines a factory to get a detailed window.
siriushla.as_ps_control.detail_widget.InterlockWindow module
Magnet Interlock widget.
- class siriushla.as_ps_control.detail_widget.InterlockWindow.InterlockListWidget(parent=None, devname='', interlock='', labels=None)[source]
Bases:
QWidget
Widget with interlock information.
- class siriushla.as_ps_control.detail_widget.InterlockWindow.InterlockWidget(parent=None, init_channel='', bit=-1, label='')[source]
Bases:
QWidget
InterlockWidget class.
- class siriushla.as_ps_control.detail_widget.InterlockWindow.InterlockWindow(parent=None, devname='', database=None, interlock=None, auxdev=None, auxdev2mod=None)[source]
Bases:
_SiriusWindow
InterlockWindow class.
- class siriushla.as_ps_control.detail_widget.InterlockWindow.LIInterlockWindow(parent=None, devname='')[source]
Bases:
_SiriusWindow
LIInterlockWindow class.
- BIT_MAPS = {'IntlkSignalIn-Mon': {}, 'IntlkSignalOut-Mon': {}, 'IntlkWarn-Mon': {}}
- COLOR_MAPS = {'IntlkRdSignalInMask-Mon': {'off': <PyQt5.QtGui.QColor object>, 'on': <PyQt5.QtGui.QColor object>}, 'IntlkRdSignalOutMask-Mon': {'off': <PyQt5.QtGui.QColor object>, 'on': <PyQt5.QtGui.QColor object>}, 'IntlkSignalIn-Mon': {'off': <PyQt5.QtGui.QColor object>, 'on': <PyQt5.QtGui.QColor object>}, 'IntlkSignalOut-Mon': {'off': <PyQt5.QtGui.QColor object>, 'on': <PyQt5.QtGui.QColor object>}, 'IntlkWarn-Mon': {'off': <PyQt5.QtGui.QColor object>, 'on': <PyQt5.QtGui.QColor object>}}
siriushla.as_ps_control.detail_widget.PSDetailWidget module
PS Detail Widget.
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.CustomLabel(parent=None, init_channel=None, keep_unit=False, **kws)[source]
Bases:
SiriusLabel
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.DCLinkDetailWidget(psname, parent=None, psmodel=None, pstype=None)[source]
Bases:
PSDetailWidget
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.FACDCLinkDetailWidget(psname, parent=None)[source]
Bases:
DCLinkDetailWidget
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.FBPDCLinkDetailWidget(psname, parent=None)[source]
Bases:
DCLinkDetailWidget
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.FastCorrPSDetailWidget(psname, parent=None)[source]
Bases:
_BaseDetailWidget
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.LIPSDetailWidget(psname, parent=None)[source]
Bases:
_BaseDetailWidget
.
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.PSAuxMeasWidget(parent, psname, auxmeas, mod2dbase, auxdev, auxdev2mod)[source]
Bases:
_SiriusWindow
PS Modules Detail Widget.
- class siriushla.as_ps_control.detail_widget.PSDetailWidget.PSDetailWidget(psname, parent=None, psmodel=None, pstype=None)[source]
Bases:
_BaseDetailWidget
Widget with control interface for a given magnet.
- AuxDev2ModDict = {'BO-Fam:PS-B-1': {'A': '1', 'B': '2'}, 'BO-Fam:PS-B-1a': {'A': '3', 'B': '4'}, 'BO-Fam:PS-B-1b': {'A': '5', 'B': '6'}, 'BO-Fam:PS-B-1c': {'A': '7', 'B': '8'}, 'BO-Fam:PS-B-2': {'A': '1', 'B': '2'}, 'BO-Fam:PS-B-2a': {'A': '3', 'B': '4'}, 'BO-Fam:PS-B-2b': {'A': '5', 'B': '6'}, 'BO-Fam:PS-B-2c': {'A': '7', 'B': '8'}}
- BasicParams = ['Version-Cte', 'Properties-Cte', 'Reset-Cmd', 'Abort-Cmd', 'WfmUpdate-Cmd', 'TimestampBoot-Cte', 'TimestampUpdate-Mon', 'PwrState-Sel', 'PwrState-Sts', 'OpMode-Sel', 'OpMode-Sts', 'CtrlMode-Mon', 'CtrlLoop-Sel', 'CtrlLoop-Sts', 'Current-SP', 'Current-RB', 'CurrentRef-Mon', 'Current-Mon', 'CycleEnbl-Mon', 'CycleIndex-Mon', 'CycleType-Sel', 'CycleType-Sts', 'CycleNrCycles-SP', 'CycleNrCycles-RB', 'CycleFreq-SP', 'CycleFreq-RB', 'CycleAmpl-SP', 'CycleAmpl-RB', 'CycleOffset-SP', 'CycleOffset-RB', 'CycleAuxParam-SP', 'CycleAuxParam-RB', 'WfmIndex-Mon', 'WfmSyncPulseCount-Mon', 'WfmUpdateAuto-Sel', 'WfmUpdateAuto-Sts', 'IDFFMode-Sel', 'IDFFMode-Sts', 'PRUCtrlQueueSize-Mon', 'SyncPulse-Cmd', 'Wfm-SP', 'Wfm-RB', 'WfmRef-Mon', 'Wfm-Mon', 'Voltage-SP', 'Voltage-RB', 'VoltageRef-Mon', 'Voltage-Mon', 'CapacitorBankVoltage-SP', 'CapacitorBankVoltage-RB', 'CapacitorBankVoltageRef-Mon', 'CapacitorBankVoltage-Mon', 'ScopeSrcAddr-SP', 'ScopeSrcAddr-RB', 'ScopeFreq-SP', 'ScopeFreq-RB', 'ScopeDuration-SP', 'ScopeDuration-RB', 'WfmSyncMode-Sel', 'WfmSyncMode-Sts', 'WfmFreq-SP', 'WfmFreq-RB', 'WfmGain-SP', 'WfmGain-RB', 'WfmOffset-SP', 'WfmOffset-RB']
siriushla.as_ps_control.detail_widget.custom_widgets module
Custom widget.
- class siriushla.as_ps_control.detail_widget.custom_widgets.LISpectIntlkLed(parent=None, filters=None)[source]
Bases:
QLed
,PyDMWidget
Led to check LI Spect interlock status.
- filterlog
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
- normal
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
- value_changed(new_value=None)[source]
Callback invoked when the Channel value is changed.
- Parameters:
new_val (str, int, float, bool or np.ndarray) – The new value from the channel. The type depends on the channel.
- warning
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