FromExperimentConfiguration#
Module: iqm.cpc.core.observation.observation_loading_rules
- class iqm.cpc.core.observation.observation_loading_rules.FromExperimentConfiguration(config, storage=None)#
Bases:
CacheableLoadRuleLoad 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 eachdut_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 aNoneis returned.The global default dict key is “common” for the “controllers” node, and an empty tuple for the other nodes.
Attributes
The experiment configuration the rule loads the observations from (no storage backend).
Methods
Applies the rule for preloaded cache.
- Parameters:
config (ExperimentConfiguration)
storage (StorageInterface | None)
- 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
