GetObservationSet#

Module: iqm.cpc.core.observation.observation_loading_rules

class iqm.cpc.core.observation.observation_loading_rules.GetObservationSet(set_id, storage=None)#

Bases: CacheableLoadRule

Get 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

attributes

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

full_name

Returns the full name including the attributes.

set_id

The observation set id the loading rule was initialized with.

Methods

resolve_from_cache

Applies the rule for preloaded cache.

Parameters:
  • set_id (uuid.UUID | str)

  • storage (StorageInterface | None)

property full_name: str#

Returns the full name including the attributes.

property attributes: tuple[UUID, StorageInterface | None]#

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

property set_id: UUID#

The observation 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.GetObservationSet