FromExperimentConfiguration#

Module: iqm.cpc.core.observation.observation_loading_rules

class iqm.cpc.core.observation.observation_loading_rules.FromExperimentConfiguration(config, storage=None)#

Bases: CacheableLoadRule

Load observations from ExperimentConfiguration.

The settings tree root nodes (“controllers”, “gates”, “characterization”, “stages”) are given as attrs in the ExperimentConfiguration. These are dicts that reflect the settings tree path structure. For each dut_field, this rule picks the corresponding root attribute and traverses the dict to find the value. Global default values for a component/locus are used if they exist and no specific value for that component/locus does. If no applicable value or global default value is found a None is returned.

The global default dict key is “common” for the “controllers” node, and an empty tuple for the other nodes.

Attributes

attributes

The experiment configuration the rule loads the observations from (no storage backend).

Methods

resolve_from_cache

Applies the rule for preloaded cache.

Parameters:
property attributes: tuple[ExperimentConfiguration, None]#

The experiment configuration the rule loads the observations from (no storage backend).

resolve_from_cache(observation_name, cache_data, default_storage)#

Applies the rule for preloaded cache.

Parameters:
Return type:

ObservationDefinition | None

Inheritance

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