CacheableLoadRule#

Module: iqm.cpc.core.observation.observation_loading_rules

class iqm.cpc.core.observation.observation_loading_rules.CacheableLoadRule#

Bases: ABC

Interface for an observation loading rule for which the observation data can be preloaded to a cache.

Note that generally load rules do not need to implement this interface. It is enough that they are of the type RuleType.

Attributes

attributes

Returns the attributes.

full_name

Returns the full name including the attributes.

Methods

resolve_from_cache

Applies the rule for preloaded cache.

property full_name: str#

Returns the full name including the attributes.

property attributes: list[Any]#

Returns the attributes.

abstractmethod resolve_from_cache(observation_name, cache_data)#

Applies the rule for preloaded cache.

Parameters:
  • observation_name (str)

  • cache_data (Any)

Return type:

ObservationDefinition | None

Inheritance

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