GetObservationSet#
Module: iqm.cpc.core.observation.observation_loading_rules
- class iqm.cpc.core.observation.observation_loading_rules.GetObservationSet(set_id, storage=None)#
Bases:
CacheableLoadRuleGet the observations for a given observation set.
The observations must belong to the specified set, but may also belong to others.
- Raises: ValueError in case there are several observations for the same dut_field, or observations in the set belong
to more than one DUT. If the set is of type ‘generic-set’ a warning is shown instead and the set is loaded as usual.
Attributes
The observation set id and the storage backend the rule loads the observations from.
Returns the full name including the attributes.
The observation set id the loading rule was initialized with.
Methods
Applies the rule for preloaded cache.
- property attributes: tuple[UUID, StorageInterface | None]#
The observation set id and the storage backend the rule loads the observations from.
- 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, ObservationData]])
default_storage (StorageInterface | None)
- Return type:
ObservationData | None
Inheritance
