siriushla.si_ap_orbintlk

Code Documentation

siriushla.si_ap_orbintlk.base module

Base Object.

class siriushla.si_ap_orbintlk.base.BaseObject(*args: Any, **kwargs: Any)[source]

Bases: BaseOrbitIntlk

Base SI BPM info object.

CONV_NM2M = 1e-09
CONV_UM2NM = 1000.0
get_ref_orb(configname)[source]

Get reference orbit from config [um].

Parameters:

configname (str) – si orbit configuration name.

Returns:

si orbit configuration value from ConfigDB

Return type:

si_orbit

property monitsum2intlksum_factor

Return factor between BPM Monit Sum and interlock Sum.

siriushla.si_ap_orbintlk.bpmdetail module

Individual BPM Orbit Interlock Window.

class siriushla.si_ap_orbintlk.bpmdetail.BPMOrbIntlkDetailWindow(*args: Any, **kwargs: Any)[source]

Bases: BaseObject, _SiriusWindow

Individual BPM Orbit Interlock Window.

siriushla.si_ap_orbintlk.custom_widgets module

BPM Interlock Buttons.

class siriushla.si_ap_orbintlk.custom_widgets.BPMIntlkEnblWidget(*args: Any, **kwargs: Any)[source]

Bases: _BPMSelectionWidget, PyDMWidget

BPM Orbit Interlock Enable Widget.

connection_changed(new_conn)[source]

Callback invoked when the connection state of the Channel is changed. This callback acts on the connection state to enable/disable the widget and also trigger the change on alarm severity to ALARM_DISCONNECTED.

Parameters:

connected (int) – When this value is 0 the channel is disconnected, 1 otherwise.

send_value()[source]

Send new value.

value_changed(new_val)[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.

class siriushla.si_ap_orbintlk.custom_widgets.BPMIntlkLimSPWidget(*args: Any, **kwargs: Any)[source]

Bases: BaseObject, QWidget

BPM Orbit Interlock Limit Setpoint Widget.

send_value()[source]

Send new value.

class siriushla.si_ap_orbintlk.custom_widgets.MonitoredDevicesDialog(*args: Any, **kwargs: Any)[source]

Bases: BaseObject, QDialog

Monitored Devices Detail Dialog.

class siriushla.si_ap_orbintlk.custom_widgets.RefOrbComboBox(parent=None)[source]

Bases: QComboBox

Reference Orbit Selection ComboBox.

refOrbChanged

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.si_ap_orbintlk.graphics module

Graph Widgets.

class siriushla.si_ap_orbintlk.graphics.AngXGraphWidget(*args: Any, **kwargs: Any)[source]

Bases: _BaseGraphWidget

Angulation Graph Widget.

INTLKTYPE = 'AngX'
PROPTY_MAX_DATA = 'IntlkLmtAngMaxX-RB'
PROPTY_MAX_SYMB = {'Instantaneous': 'IntlkAngUpperX-Mon', 'Latch': 'IntlkAngUpperLtcX-Mon'}
PROPTY_MEAS_DATA = 'IntlkAngX-Mon'
PROPTY_MEAS_SYMB = {'Instantaneous': {'General': 'Intlk-Mon'}, 'Latch': {'General': 'IntlkLtc-Mon'}}
PROPTY_MIN_DATA = 'IntlkLmtAngMinX-RB'
PROPTY_MIN_SYMB = {'Instantaneous': 'IntlkAngLowerX-Mon', 'Latch': 'IntlkAngLowerLtcX-Mon'}
class siriushla.si_ap_orbintlk.graphics.AngYGraphWidget(*args: Any, **kwargs: Any)[source]

Bases: _BaseGraphWidget

Angulation Graph Widget.

INTLKTYPE = 'AngY'
PROPTY_MAX_DATA = 'IntlkLmtAngMaxY-RB'
PROPTY_MAX_SYMB = {'Instantaneous': 'IntlkAngUpperY-Mon', 'Latch': 'IntlkAngUpperLtcY-Mon'}
PROPTY_MEAS_DATA = 'IntlkAngY-Mon'
PROPTY_MEAS_SYMB = {'Instantaneous': {'General': 'Intlk-Mon'}, 'Latch': {'General': 'IntlkLtc-Mon'}}
PROPTY_MIN_DATA = 'IntlkLmtAngMinY-RB'
PROPTY_MIN_SYMB = {'Instantaneous': 'IntlkAngLowerY-Mon', 'Latch': 'IntlkAngLowerLtcY-Mon'}
class siriushla.si_ap_orbintlk.graphics.Graph(*args: Any, **kwargs: Any)[source]

Bases: BaseObject, SiriusWaveformPlot

BPM orbit interlock data graph.

mouseDoubleClickEvent(event)[source]

Reimplement mouseDoubleClickEvent.

property symbols_max

Return symbols for max curve.

property symbols_meas

Return symbols for meas curve.

property symbols_min

Return symbols for min curve.

property tooltips

Return tooltips.

property x_data

Return x_data.

property y_data_max

Return y_data for max curve.

property y_data_meas

Return y_data for meas curve.

property y_data_min

Return y_data for min curve.

class siriushla.si_ap_orbintlk.graphics.GraphLegendWidget(parent=None, metric='', plan='')[source]

Bases: QWidget

Graph Legend Widget.

class siriushla.si_ap_orbintlk.graphics.GraphMonitorWidget(parent=None, prefix=siriuspy.envars.VACA_PREFIX)[source]

Bases: QWidget

Graph Monitor Widget.

class siriushla.si_ap_orbintlk.graphics.GraphProptySelWidget(parent=None)[source]

Bases: QWidget

Graph Interlock and Comparision Type Selelction Widget.

propty_comp_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_intlk_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_reforb_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.si_ap_orbintlk.graphics.MinSumGraphWidget(*args: Any, **kwargs: Any)[source]

Bases: _BaseGraphWidget

MinSum Graph Widget.

INTLKTYPE = 'MinSum'
PROPTY_MAX_DATA = ''
PROPTY_MAX_SYMB = ''
PROPTY_MEAS_DATA = 'SlowSumRaw-Mon'
PROPTY_MEAS_SYMB = ''
PROPTY_MIN_DATA = 'IntlkLmtMinSum-RB'
PROPTY_MIN_SYMB = ''
class siriushla.si_ap_orbintlk.graphics.PosXGraphWidget(*args: Any, **kwargs: Any)[source]

Bases: _BaseGraphWidget

Position Graph Widget.

INTLKTYPE = 'PosX'
PROPTY_MAX_DATA = 'IntlkLmtPosMaxX-RB'
PROPTY_MAX_SYMB = {'Instantaneous': 'IntlkPosUpperX-Mon', 'Latch': 'IntlkPosUpperLtcX-Mon'}
PROPTY_MEAS_DATA = 'IntlkPosX-Mon'
PROPTY_MEAS_SYMB = {'Instantaneous': {'General': 'Intlk-Mon'}, 'Latch': {'General': 'IntlkLtc-Mon'}}
PROPTY_MIN_DATA = 'IntlkLmtPosMinX-RB'
PROPTY_MIN_SYMB = {'Instantaneous': 'IntlkPosLowerX-Mon', 'Latch': 'IntlkPosLowerLtcX-Mon'}
class siriushla.si_ap_orbintlk.graphics.PosYGraphWidget(*args: Any, **kwargs: Any)[source]

Bases: _BaseGraphWidget

Position Graph Widget.

INTLKTYPE = 'PosY'
PROPTY_MAX_DATA = 'IntlkLmtPosMaxY-RB'
PROPTY_MAX_SYMB = {'Instantaneous': 'IntlkPosUpperY-Mon', 'Latch': 'IntlkPosUpperLtcY-Mon'}
PROPTY_MEAS_DATA = 'IntlkPosY-Mon'
PROPTY_MEAS_SYMB = {'Instantaneous': {'General': 'Intlk-Mon'}, 'Latch': {'General': 'IntlkLtc-Mon'}}
PROPTY_MIN_DATA = 'IntlkLmtPosMinY-RB'
PROPTY_MIN_SYMB = {'Instantaneous': 'IntlkPosLowerY-Mon', 'Latch': 'IntlkPosLowerLtcY-Mon'}

siriushla.si_ap_orbintlk.main module

BPM Orbit Interlock Main Window.

class siriushla.si_ap_orbintlk.main.BPMOrbIntlkMainWindow(*args: Any, **kwargs: Any)[source]

Bases: BaseObject, _SiriusWindow

BPM Orbit Interlock Control Window.

Module contents