GetCalibrationSet#
Module: iqm.cpc.core.observation.observation_loading_rules
- class iqm.cpc.core.observation.observation_loading_rules.GetCalibrationSet(calibration_set_id, storage=None)#
Bases:
CacheableLoadRuleGet the observations of a specific calibration set, or the current default one.
Maps directly to
StorageInterface.get_calibration_set().- Parameters:
calibration_set_id (StrUUIDOrDefault) – ID of the calibration set to get.
storage (StorageInterface | None) – The storage backend the rule loads the observations from. If
None, the default storage will be used.
Attributes
The calibration set id and the storage backend the rule loads the observations from.
The calibration set id the loading rule was initialized with.
Returns the full name including the attributes.
Methods
Applies the rule for preloaded cache.
- property attributes: tuple[str | UUID | Literal['default'], StorageInterface | None]#
The calibration set id and the storage backend the rule loads the observations from.
- property calibration_set_id: str | UUID | Literal['default']#
The calibration set id the loading rule was initialized with.
- resolve_from_cache(observation_name, cache_data, default_storage)#
Applies the rule for preloaded cache.
- Parameters:
observation_name (str)
cache_data (dict[StorageInterface | None, dict[str | UUID | Literal['default'], dict[str, ~iqm.station_control.interface.models.observation.ObservationData]]])
default_storage (StorageInterface | None)
- Return type:
ObservationData | None
Inheritance
