hydromodpy.workflow.steps.validate#
Step 0 - config validation.
Loads the TOML config (if a path is present in state.data["config_path"])
and instantiates the Pydantic HydroModPyConfig. If state.data["cfg"]
is already a Pydantic config, it is re-validated to ensure immutability.
Inputs#
config_path : str or Path (optional if cfg already present)
Outputs#
cfg : HydroModPyConfig
config_path : Path
Classes
|
Validate the config via Pydantic. |