siriushla.as_ap_sofb.ioc_control

Code Documentation

siriushla.as_ap_sofb.ioc_control.base module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.base.BaseCombo(parent, ctrls, setpoint=None, readback=None, acc='SI')[source]

Bases: QComboBox, PyDMPrimitiveWidget

.

property acc

.

property acc_idx

.

channels()[source]

.

configname

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

connect_signals()[source]

.

ioc_orbit_changed(pln, orb)[source]

.

property isring

.

setup_ui(add_items=None)[source]

.

class siriushla.as_ap_sofb.ioc_control.base.BaseObject(device, prefix='', acc='SI')[source]

Bases: object

Base object.

property acc

Accelerator.

property acc_idx

Accelerator index.

property isring

Whether accelerator is a ring.

class siriushla.as_ap_sofb.ioc_control.base.BaseWidget(parent, device, prefix='', acc='SI')[source]

Bases: BaseObject, QWidget

Base widget.

create_pair(parent, pvname, device=None, is_vert=False, rules=None)[source]

.

create_pair_butled(parent, pvname, device=None, is_vert=False, rules=None)[source]

.

create_pair_sel(parent, pvname, device=None, is_vert=False, rules=None)[source]

.

siriushla.as_ap_sofb.ioc_control.drive_window module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.drive_window.DriveControl(parent, device, prefix='', acc='SI')[source]

Bases: BaseWidget

.

setupui()[source]

.

siriushla.as_ap_sofb.ioc_control.kicks_config module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.kicks_config.KicksConfigWidget(parent, device, prefix='', acc='SI')[source]

Bases: BaseWidget

get_details_widget(parent)[source]

.

get_status_widget(parent)[source]

.

setupui()[source]

siriushla.as_ap_sofb.ioc_control.main module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.main.PerformanceWidget(parent, device, prefix='')[source]

Bases: QWidget

.

class siriushla.as_ap_sofb.ioc_control.main.RefControl(parent, device, ctrls, prefix='', acc='SI')[source]

Bases: BaseCombo

.

setup_ui()[source]

.

class siriushla.as_ap_sofb.ioc_control.main.SOFBControl(parent, device, ctrls, prefix='', acc='SI')[source]

Bases: BaseWidget

.

get_auto_correction_widget(parent)[source]

.

get_correction_widget(parent)[source]

.

get_fofb_widget(parent)[source]

.

get_main_widget(parent)[source]

.

get_manual_correction_widget(parent)[source]

.

get_orbit_widget(parent)[source]

.

setupui()[source]

.

siriushla.as_ap_sofb.ioc_control.orbit_acquisition module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.orbit_acquisition.AcqControlWidget(parent, device, prefix='', acc='SI')[source]

Bases: BaseWidget

setupui()[source]

siriushla.as_ap_sofb.ioc_control.respmat module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.respmat.RespMatWidget(parent, device, prefix='', acc='SI')[source]

Bases: BaseWidget

DEFAULT_DIR = '/home/runner'
get_main_widget(parent)[source]
get_measurement_widget(parent)[source]

.

get_saveload_widget(parent)[source]

.

get_selection_lists_widget(parent)[source]

.

get_singular_values_widget(parent)[source]

.

setupui()[source]

.

siriushla.as_ap_sofb.ioc_control.respmat_enbllist module

Create the Selection Matrices for BPMs and Correctors.

class siriushla.as_ap_sofb.ioc_control.respmat_enbllist.SelectionMatrix(parent, device, prefix='', acc='SI', rules=None)[source]

Bases: BaseWidget

class siriushla.as_ap_sofb.ioc_control.respmat_enbllist.SingleSelMatrix(parent, dev, device, prefix='', acc='SI', rules=None)[source]

Bases: BaseObject, SelectionMatrixWidget, PyDMWidget

Create the Selection Matrices for BPMs and Correctors.

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.

get_headers()[source]

Should be implemented in class derivation.

Returns:

  • top_headers (tuple or list) – A list of strings for top headers of the selection matrix widget.

  • side_headers (tuple or list) – A list of strings for side headers of the selection matrix widget.

get_positions()[source]

Should be implemented in class derivation.

Returns:

positions – A tuple or list of layout positions for each widget returned by get_widgets.

Return type:

tuple or list

get_widgets()[source]

Should be implemented in class derivation.

Returns:

widgets – A tuple or list of widgets to be put in matrix.

Return type:

tuple or list

send_value(other=False)[source]
sizeHint()[source]

Return the base size of the widget.

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.

siriushla.as_ap_sofb.ioc_control.status module

Define Controllers for the orbits displayed in the graphic.

class siriushla.as_ap_sofb.ioc_control.status.StatusWidget(parent, device, prefix='', acc='SI', is_orb=False)[source]

Bases: BaseWidget

creategroupbox()[source]
setupui()[source]

Module contents