set_variables module

class VariableSelectorConfig(*, refnr=None, ident=None, secondary_idents=None, time_units=None, grouping_variables=None, ignore_alerts_on_varchange=None)

Bases: BaseModel

Configuration for the variable selector.

Parameters:
  • refnr (str | None)

  • ident (str | None)

  • secondary_idents (list[str] | None)

  • time_units (TimeUnit | None)

  • grouping_variables (list[str] | None)

  • ignore_alerts_on_varchange (list[str] | None)

classmethod from_dict(config)
Return type:

VariableSelectorConfig

classmethod from_yaml(yaml_path)
Return type:

VariableSelectorConfig

Parameters:

yaml_path (str)

grouping_variables: list[str] | None
ident: str | None
ignore_alerts_on_varchange: list[str] | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(_VariableSelectorConfig__context)

Override this method to perform additional initialization after __init__ and model_construct. This is useful if you want to do some validation that requires the entire model to be initialized.

Return type:

None

Parameters:

_VariableSelectorConfig__context (Any)

refnr: str | None
secondary_idents: list[str] | None
time_units: TimeUnit | None
apply_config(config)
Return type:

None

Parameters:

config (VariableSelectorConfig)