siriushla.as_ap_configdb.normconfigs
Code Documentation
siriushla.as_ap_configdb.normconfigs.ConfigManagerWindow module
Define a window to manage offline configurations.
- class siriushla.as_ap_configdb.normconfigs.ConfigManagerWindow.ConfigManagerWindow(config_type, parent=None)[source]
Bases:
_SiriusWindow
Window to manage offline configuration of BO and SI devices.
This window allows the user to create new configurations as well as interpolate or apply a tune or chromaticity delta to a configuration.
- NEW_CONFIGURATION = 0
siriushla.as_ap_configdb.normconfigs.ConfigModel module
Configuration window model definition.
- class siriushla.as_ap_configdb.normconfigs.ConfigModel.ConfigDelegate[source]
Bases:
QItemDelegate
Styling.
- class siriushla.as_ap_configdb.normconfigs.ConfigModel.ConfigModel(config_type, parent=None)[source]
Bases:
QAbstractTableModel
Model for the configuration table.
- CHROMATICITY = 1
- TUNE = 0
- UNDO_MEMORY = 75
- columnCount(index=<PyQt5.QtCore.QModelIndex object>)[source]
Return the number of configurations currently open.
- property configurations
Return list of open configurations.
- deriveConfiguration(config_name, base_column, func, parameters)[source]
Create new configuration from existing one TUNE or CHROMATICITY.
- insertColumn(column, index=<PyQt5.QtCore.QModelIndex object>)[source]
Update table widget telling it a new column was inserted.
- interpolateConfiguration(config_name, column1, column2)[source]
Linear interpolation of 2 configurations.
- removeColumns(column, count=1, index=<PyQt5.QtCore.QModelIndex object>)[source]
Update table widget telling it a column was removed.
- class siriushla.as_ap_configdb.normconfigs.ConfigModel.Configuration(name, config_type, values, new=True)[source]
Bases:
object
Represents a configuration.
- property dirty
Return wether thre is unsaved data.
- property name
Configuration name.
- property old_name
Configuration name in database.
- property values
PV values.
siriushla.as_ap_configdb.normconfigs.LoadingThread module
- class siriushla.as_ap_configdb.normconfigs.LoadingThread.LoadingThread(name, pv_list, parent=None)[source]
Bases:
QThread
- VACA_PREFIX = ''
- taskFinished
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
- taskUpdated
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