__init__.py¶
-
siriushlacon.regatron.
proc_alarm
(mod=True, std=False, timeout=1.0, error=True, prefix=None)[source]¶ Start a worker that will PROC every PV in the selected category.
- Parameters
mod – Regatron’s module or system group
std – Standard or extended errors/warnings
timeout – Caput timeout
error – Error or warning group
prefix – PV prefix
main.py¶
-
class
siriushlacon.regatron.main.
Launcher
(parent=None, macros=None, **kwargs)[source]¶ Bases:
pydm.display.Display
-
DIP
= 'DIP'¶
-
QUA
= 'QUA'¶
-
SEX
= 'SEX'¶
-
render
(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))[source]¶ render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren))
-
regatron.py¶
alarm.py¶
-
class
siriushlacon.regatron.alarm.
AlarmDisplay
(parent=None, macros=None, **kwargs)[source]¶ Bases:
pydm.display.Display
Query alarms from the archiver appliance and display in a human readable format
-
do_search
(alarm_tree, time_to, time_from, std, error)[source]¶ Query and build the alarm tree
- Parameters
alarm_tree – QTreeWidget to append the alarms
time_to – final time
time_from – initial time
std – True for ‘Std’ else ‘Ext’, defines if it’s a standard or extended alarm
error – True for ‘Err’ else ‘Warn’, defines if it’s an error or a warning
-
get_PV
(signal, std=False, error=False)[source]¶ Build a PV name
- Parameters
signal – Signal name, the last component of the PV
std – True for ‘Std’ else ‘Ext’
error – True for ‘Err’ else ‘Warn’
- Returns
the PV name
-
static
reading_tree_item
(reading, mapping: dict = None)[source]¶ Get data from archiver and transform into a node with branches according to the bit value defined by the mapping.
- Parameters
reading – A data item from the archiver request
mapping – Mapping for each bit on the integer where the key is an integer from
representing the bit position starting from zero and the key is a string with it’s meaning :return: A QTreeWidgetItem
-