siriushla.common.epics.task

Code Documentation

siriushla.common.epics.task.checker module

Epics Checker Task.

class siriushla.common.epics.task.checker.EpicsChecker(pvs, values, delays, cls_epics=<class 'siriushla.common.epics.wrapper.pyepics.PyEpicsWrapper'>, parent=None, timeout=0.5)[source]

Bases: EpicsTask

Check if a set of PVs has the proper values.

itemChecked

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]

Thread execution.

siriushla.common.epics.task.connector module

Epics Connector.

class siriushla.common.epics.task.connector.EpicsConnector(pvs, cls_epics=<class 'siriushla.common.epics.wrapper.pyepics.PyEpicsWrapper'>, parent=None)[source]

Bases: EpicsTask

Interface to execute some task.

Allows a QThread to work with ProgressDialog widget. Implements: currentItem (Signal) itemDone (Signal) size (method) exit_task (method)

run()[source]

Thread execution.

siriushla.common.epics.task.getter module

Epics Getter.

class siriushla.common.epics.task.getter.EpicsGetter(pvs, defvals=None, cls_epics=<class 'siriushla.common.epics.wrapper.pyepics.PyEpicsWrapper'>, parent=None, timeout=0.5)[source]

Bases: EpicsTask

Get value of a set of PVs.

itemNotRead

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

itemRead

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]

Thread execution.

siriushla.common.epics.task.setter module

Epics Setter.

class siriushla.common.epics.task.setter.EpicsSetter(pvs, values, delays, cls_epics=<class 'siriushla.common.epics.wrapper.pyepics.PyEpicsWrapper'>, parent=None, timeout=0.5)[source]

Bases: EpicsTask

Set the value of a set of PVs.

run()[source]

Thread execution.

siriushla.common.epics.task.task module

EpicsTask interface.

class siriushla.common.epics.task.task.EpicsTask(pvs, values, delays, cls_epics=<class 'siriushla.common.epics.wrapper.pyepics.PyEpicsWrapper'>, parent=None, timeout=0.5)[source]

Bases: QThread

Interface to execute some task.

Allows a QThread to work with ProgressDialog widget. Implements: currentItem (Signal) itemDone (Signal) size (method) exit_task (method)

PVs = {}
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 flag to exit thread.

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

size()[source]

Task Size.

siriushla.common.epics.task.wait module

class siriushla.common.epics.task.wait.EpicsWait(pvs, wait_time=1.0, parent=None)[source]

Bases: EpicsTask

.

run()[source]

.

Module contents

Task module init.