hydromodpy.core.state.run_state#

Mutable runtime state threaded through workflow steps.

Three canonical scopes:

  • setup: structural objects prepared once (workspace, domain, flow, …);

  • loaded_data: loaded support data (climatic, oceanic, hydrometry, …);

  • execution: run outputs and registries (planned runs, produced models).

Plus result-store lifecycle fields (store, sim_id, postprocess_runner) used by the workflow layer.

Canonical access is explicit:

  • state.setup.<...> for structural runtime context,

  • state.loaded_data.<...> for loaded datasets,

  • state.execution.<...> for run outputs and execution registries.

Classes

WorkflowContext(cfg, config_path, raw_toml)

Mutable workflow state split into setup/loaded_data/execution scopes.