siriushla.as_ps_commands

Code Documentation

siriushla.as_ps_commands.main module

Window to test power supplies.

class siriushla.as_ps_commands.main.PSCmdWindow(parent=None)[source]

Bases: _SiriusWindow

PS commands window.

keyPressEvent(evt)[source]

Implement keyPressEvent.

siriushla.as_ps_commands.tasks module

.

class siriushla.as_ps_commands.tasks.BaseTask(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: QThread

Base Task.

completed

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

currentItem

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

exit_task()[source]

Set quit flag.

function()[source]

Must be reimplemented in each class.

itemDone

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

run()[source]

Run task.

size()[source]

Task size.

class siriushla.as_ps_commands.tasks.CheckCapBankVolt(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check capacitor bank voltage.

function()[source]

Check DCLink Capacitor Bank Voltage.

class siriushla.as_ps_commands.tasks.CheckComm(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check communication status.

function()[source]

Check communication status.

class siriushla.as_ps_commands.tasks.CheckCtrlLoop(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check PS CtrlLoop.

function()[source]

Check PS CtrlLoop.

class siriushla.as_ps_commands.tasks.CheckCurrent(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check current value.

function()[source]

Check PS Current.

class siriushla.as_ps_commands.tasks.CheckIDFFMode(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check PS IDFFMode.

function()[source]

Check PS IDFFMode.

class siriushla.as_ps_commands.tasks.CheckInitOk(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check if PS initialized.

function()[source]

Check PS initialized.

class siriushla.as_ps_commands.tasks.CheckIntlk(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check Interlocks.

function()[source]

Check interlocks.

class siriushla.as_ps_commands.tasks.CheckOpMode(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check PS OpMode.

function()[source]

Check PS OpMode.

class siriushla.as_ps_commands.tasks.CheckPulse(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check PU Pulse.

function()[source]

Check PU Pulse.

class siriushla.as_ps_commands.tasks.CheckPwrState(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check PS PwrState.

function()[source]

Check PS PwrState.

class siriushla.as_ps_commands.tasks.CheckStatus(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check Status.

function()[source]

Check status.

class siriushla.as_ps_commands.tasks.CheckTriggerState(parent=None, restore_initial_value=False, dis='PS', state='on', devices=None)[source]

Bases: TriggerTask

Check magnet trigger state.

function()[source]

Function to implement.

class siriushla.as_ps_commands.tasks.CheckVoltage(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Check voltage value.

function()[source]

Check PU Voltage.

class siriushla.as_ps_commands.tasks.CreateTesters(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Create Testers.

function()[source]

Must be reimplemented in each class.

class siriushla.as_ps_commands.tasks.ResetIntlk(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Reset Interlocks.

function()[source]

Reset.

class siriushla.as_ps_commands.tasks.SetCapBankVolt(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set capacitor bank voltage.

function()[source]

Set DCLink Capacitor Bank Voltage.

class siriushla.as_ps_commands.tasks.SetCtrlLoop(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set PS CtrlLoop.

function()[source]

Set PS CtrlLoop.

class siriushla.as_ps_commands.tasks.SetCurrent(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set current value.

function()[source]

Set PS Current.

class siriushla.as_ps_commands.tasks.SetIDFFMode(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set PS IDFFMode.

function()[source]

Set PS IDFFMode.

class siriushla.as_ps_commands.tasks.SetOpMode(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set PS OpMode.

function()[source]

Set PS OpMode.

class siriushla.as_ps_commands.tasks.SetPulse(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set PU Pulse.

function()[source]

Set PU Pulse.

class siriushla.as_ps_commands.tasks.SetPwrState(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set PS PwrState.

function()[source]

Set PS PwrState.

class siriushla.as_ps_commands.tasks.SetTriggerState(parent=None, restore_initial_value=False, dis='PS', state='on', devices=None)[source]

Bases: TriggerTask

Set magnet trigger state.

function()[source]

Function to implement.

class siriushla.as_ps_commands.tasks.SetVoltage(devices, state=None, is_test=False, value=None, parent=None)[source]

Bases: BaseTask

Set voltage value.

function()[source]

Set PU Voltage.

class siriushla.as_ps_commands.tasks.TriggerTask(parent=None, restore_initial_value=False, dis='PS', state='on', devices=None)[source]

Bases: QThread

Base task to handle triggers.

completed

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

currentItem

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

exit_task()[source]

Set quit flag.

function()[source]

Function to implement.

initial_triggers_state = {}
itemDone

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

run()[source]

Run task.

size()[source]

Task size.

Module contents

HLA to Handle Power Supplies Tests.