GetCalibrationSet#

Module: iqm.cpc.core.observation.observation_loading_rules

class iqm.cpc.core.observation.observation_loading_rules.GetCalibrationSet(calibration_set_id, storage=None)#

Bases: CacheableLoadRule

Get 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

attributes

The calibration set id and the storage backend the rule loads the observations from.

calibration_set_id

The calibration set id the loading rule was initialized with.

full_name

Returns the full name including the attributes.

Methods

resolve_from_cache

Applies the rule for preloaded cache.

property full_name: str#

Returns the full name including the attributes.

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:
Return type:

ObservationData | None

Inheritance

Inheritance diagram of iqm.cpc.core.observation.observation_loading_rules.GetCalibrationSet