exa.core.observation.observation_stash.get_loaded_stash_from_rules#
- get_loaded_stash_from_rules(load_rules, *, dut_label=None, default_storage=None, compare_db_and_local_time=None)#
Utility for loading observations resolved by the given rules and mapping them to their dut field paths.
Unlike
get_loaded_stash_with(), this does not scan every dut field ever recorded for the DUT. It only touches the dut fields thatload_rulesthemselves surface from the DB (seeload_observations_by_rules()), so it needs no prior knowledge of which dut fields exist.NOTE: This may slightly alter how the settings tree is built. In particular, its possible that certain branches are not initially created, if they do no exist in the observations the stash was initialized with. Such observations can however still be added to the stash.
- Parameters:
load_rules (list[RuleType]) – The load rules for loading the observations.
dut_label (str | None) – The dut label to use. If not provided, will use the dut label from the ExaRuntime experiment configuration.
default_storage (StorageInterface | None) – The default storage to use when no storage is pinned by the loading rule. If not provided, will use the ExaRuntime storage.
compare_db_and_local_time (bool | None) – Allow comparing local and database timestamps when fetching latest observations. If disabled, local observations will always have priority to database observations, and a warning will be shown in case a database observation may be more recent. Setting the flag explicitly to ´False´ Suppresses the warning. Disabled by default.
- Return type:
Returns: The observations mapped to their dut field paths.