siriushla.as_ps_cycle

Code Documentation

siriushla.as_ps_cycle.cycle_window module

Power supplies cycle window.

class siriushla.as_ps_cycle.cycle_window.CycleWindow(parent=None, checked_accs=(), adv_mode=False)[source]

Bases: _SiriusWindow

Power supplies cycle window.

closeEvent(self, a0: QCloseEvent | None)[source]
keyPressEvent(evt)[source]

Implement keyPressEvent.

class siriushla.as_ps_cycle.cycle_window.MyProgressBar(parent=None)[source]

Bases: QProgressBar

increment()[source]
class siriushla.as_ps_cycle.cycle_window.UpdateProgressBar(duration, parent=None)[source]

Bases: QThread

exit_task()[source]

Set flag to quit thread.

increment

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(self)[source]

siriushla.as_ps_cycle.tasks module

class siriushla.as_ps_cycle.tasks.BaseTask(parent=None, psnames=[], timing=None, need_controller=False, isadv=False)[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

duration()[source]

Return task maximum duration.

exit_task()[source]

Set flag to quit thread.

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]

Return task size.

update(message, done, warning, error)[source]
updated

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.as_ps_cycle.tasks.CreateCyclers(parent=None, psnames=[], timing=None, need_controller=False, isadv=False)[source]

Bases: BaseTask

Create cyclers.

function()[source]

Create cyclers.

class siriushla.as_ps_cycle.tasks.Cycle(**kwargs)[source]

Bases: BaseTask

Cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.CycleTrims(**kwargs)[source]

Bases: BaseTask

Cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PreparePSCurrentZero(**kwargs)[source]

Bases: BaseTask

Prepare power suplies to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PreparePSIDFFMode(**kwargs)[source]

Bases: BaseTask

Prepare power suplies to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PreparePSOpModeCycle(**kwargs)[source]

Bases: BaseTask

Prepare power suplies to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PreparePSOpModeSlowRef(**kwargs)[source]

Bases: BaseTask

Prepare power suplies to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PreparePSParams(**kwargs)[source]

Bases: BaseTask

Prepare power suplies to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.PrepareTiming(**kwargs)[source]

Bases: BaseTask

Prepare timing to cycle.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.RestoreTiming(**kwargs)[source]

Bases: BaseTask

Restore timing initial state.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.SaveTiming(**kwargs)[source]

Bases: BaseTask

Save timing initial state.

duration()[source]

Return task maximum duration.

function()[source]

Must be reimplemented in each class.

size()[source]

Return task size.

class siriushla.as_ps_cycle.tasks.VerifyPS(parent=None, psnames=[], timing=None, need_controller=False, isadv=False)[source]

Bases: BaseTask

Verify power supply initial state.

function()[source]

Verify if PS is ready for cycle.

size()[source]

Return task size.

Module contents

HLA to Handle Power Supplies Cycling.