nomad_camels_driver_derived_channels package
Submodules
nomad_camels_driver_derived_channels.derived_channels module
- class nomad_camels_driver_derived_channels.derived_channels.Signal_Tab(signal_info=None, parent=None)
Bases:
QWidget
- get_info()
Collects the information from the tab and returns it as a dictionary.
- read_write_changed()
- staticMetaObject = PySide6.QtCore.QMetaObject("Signal_Tab" inherits "QWidget": )
- nomad_camels_driver_derived_channels.derived_channels.get_configs_from_ophyd(ophyd_instance)
- class nomad_camels_driver_derived_channels.derived_channels.subclass(**kwargs)
Bases:
Device
- get_channels()
returns self.channels, should be overwritten for special purposes (e.g. leaving out some keys of the dictionary)
- Returns:
self.channels – dictionary containing the device’s channels
- Return type:
dict
- get_necessary_devices()
Returns a list of the devices that this device needs to function (e.g. for a PID controller).
- update_driver()
- class nomad_camels_driver_derived_channels.derived_channels.subclass_config(parent=None, data='', settings_dict=None, config_dict=None, additional_info=None)
Bases:
Device_Config
- get_config()
Returns the config_dict of the device. Overwrite this function for each device to specify the config.
- get_settings()
Updates the settings_dict with the current settings. Overwrite this function for each device to specify the settings. It is recommended to still call the super() method for the connection-settings.
- staticMetaObject = PySide6.QtCore.QMetaObject("subclass_config" inherits "Device_Config": )
nomad_camels_driver_derived_channels.derived_channels_ophyd module
- class nomad_camels_driver_derived_channels.derived_channels_ophyd.derived_channels(prefix='', *, name, kind=None, read_attrs=None, configuration_attrs=None, parent=None, signal_info=None, **kwargs)
Bases:
Device
This class is used to control the LabVIEW Cryo system. It reads the file coming from the LabVIEW code.
- component_names = ()
- subscriptions: ClassVar[FrozenSet[str]] = frozenset({'acq_done'})
- nomad_camels_driver_derived_channels.derived_channels_ophyd.make_ophyd_class(signal_info)
- nomad_camels_driver_derived_channels.derived_channels_ophyd.make_ophyd_instance_derived_channels(prefix='', *args, name, kind=None, read_attrs=None, configuration_attrs=None, parent=None, signal_info=None, **kwargs)
nomad_camels_driver_derived_channels.multi_derived_signal module
- class nomad_camels_driver_derived_channels.multi_derived_signal.MultiDerivedSignal(derived_from, *, write_access=False, name=None, parent=None, read_formula=None, write_formula=None, **kwargs)
Bases:
Signal
A signal that can be derived from multiple sources. This class extends the DerivedSignal to allow for multiple input signals.
- property connected
Check if all derived signals are connected.
- describe()
Provide schema and meta-data for
read()
This keys in the OrderedDict this method returns must match the keys in the OrderedDict return by
read()
.This provides schema related information, (ex shape, dtype), the source (ex PV name), and if available, units, limits, precision etc.
- Returns:
data_keys – The keys must be strings and the values must be dict-like with the
event_model.event_descriptor.data_key
schema.- Return type:
OrderedDict
- forward(value)
- get(**kwargs)
Override the get method to handle multiple derived signals.
- inverse(**values)
- put(value, **kwargs)
Low-level method for writing to a Signal.
The value is optionally checked first, depending on the value of force. In addition, VALUE subscriptions are run.
Extra kwargs are ignored (for API compatibility with EpicsSignal kwargs pass through).
- Parameters:
value (any) – Value to set
timestamp (float, optional) – The timestamp associated with the value, defaults to time.time()
metadata (dict, optional) – Further associated metadata with the value (such as alarm status, severity, etc.)
force (bool, optional) – Check the value prior to setting it, defaults to False
- subscriptions: ClassVar[FrozenSet[str]] = frozenset({'meta', 'value'})
- trigger()
Trigger the derived signals to update their values.
- class nomad_camels_driver_derived_channels.multi_derived_signal.MultiDerivedSignalRO(derived_from, *, name=None, parent=None, read_formula=None, **kwargs)
Bases:
SignalRO
,MultiDerivedSignal
A read-only version of MultiDerivedSignal. This class inherits from MultiDerivedSignal and SignalRO to provide read-only access.
- subscriptions: ClassVar[FrozenSet[str]] = frozenset({'meta', 'value'})