__init__.py

siriushlacon.regatron.do_work(pvs, timeout, _lock)[source]

Worker function

siriushlacon.regatron.lock(error, std)[source]
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))

siriushlacon.regatron.main.get_overview_detail(name)[source]
siriushlacon.regatron.main.load_data()[source]

regatron.py

class siriushlacon.regatron.regatron.Regatron(parent=None, macros=None, **kwargs)[source]

Bases: pydm.display.Display

get_mod_ext_error_report(value)[source]
get_mod_ext_warn_report(value)[source]
get_mod_std_error_report(value)[source]
get_mod_std_warn_report(value)[source]
get_sys_ext_error_report(value)[source]
get_sys_ext_warn_report(value)[source]
get_sys_std_error_report(value)[source]
get_sys_std_warn_report(value)[source]
setup_icons()[source]
siriushlacon.regatron.regatron.get_report(value, map_, msg)[source]

consts.py

siriushlacon.regatron.consts.get_abs_path(filename)[source]

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

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

search_alarms()[source]

Update all tree widgets

set_time_now()[source]

Set current date and time to the “dfTo” widget

err.py

class siriushlacon.regatron.err.Err(parent=None, macros=None, **kwargs)[source]

Bases: pydm.display.Display

warn.py

class siriushlacon.regatron.warn.Warn(parent=None, macros=None, **kwargs)[source]

Bases: pydm.display.Display