hydromodpy.config.hydromodpy_config#
Top-level Pydantic configuration object for HydroModPy.
Aggregates all sub-configs into a single hierarchical model.
Relative paths in the TOML are resolved against the TOML file location;
absolute paths are left as-is. Paths starting with ~ are expanded
to the user’s home directory.
Usage:
from hydromodpy.config import HydroModPyConfig
cfg = HydroModPyConfig.from_toml(
"examples/projects/03_canut_watershed/project.toml"
)
cfg.workspace.project_root
cfg.geographic.catch_def
cfg.geographic.dem_init_path
cfg.domain.zone_ids
cfg.data.geology.id
cfg.flow.param["K"]
cfg.modflownwt.process_specific.vka