observation_load_utils

observation_load_utils#

Full path: iqm.cpc.core.observation.observation_load_utils

Utilities for loading observations from StorageInterface.

Contains the storage queries used by the observation loading rules, as well as the cache loading functions that RuleCache maps the cacheable loading rules to.

All functions here are self-contained: they take the StorageInterface instance they operate on as an argument and have no dependency on any ambient runtime.

Functions

get_all_latest_observations(storage, dut_label)

Get the latest observation corresponding to each dut_field.

get_default_calset_observations(storage)

Loads all observations related to the default calibration set.

get_latest_observation(dut_field, *, ...[, ...])

Get the latest valid observation for the given DUT, based on the created timestamp.

get_latest_observation_set_data(set_type[, ...])

Find the latest finalized observation set of given type.

get_latest_observation_set_observations(set_type)

Loads all observations related to the latest finalized observation set of given type.

get_observation_set_observations(set_ids, ...)

Loads all observations related to a given observation set, one set at a time.

get_observation_set_type(set_id, storage)

Get the type of an observation set.

load_get_latest_for_tags_cache(tags, ...)

Load the cache for the GetLatestForTags load rule.

populate_from_configs(items, dut_label)

Populate the settings values from multiple ExperimentConfigurations into a dict.