hydromodpy.core#

Core infrastructure layer for HydroModPy.

Keep this package-level module lightweight: importing hydromodpy.core should not eagerly pull the full configuration and data-loading stack. core is the kernel leaf of the import DAG and must not re-export symbols from sibling layers.

Functions

clear_whitebox_backend_cache()

Clear the shared workflows backend singleton.

get_whitebox_backend([kind])

Return the shared workflows backend used by runtime code.

Classes

Workspace(config)

Prepare and expose the folder structure for one project workspace.

WorkspacePathRegistry(project_root, root, ...)

Centralize shared data and project-local result paths.

ExecutionRegistry([simulation_plan, ...])

Execution-oriented metadata and produced model registry.

WorkflowContext(cfg, config_path, raw_toml)

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

LoadedDataContext([dem, geology, oceanic, ...])

Loaded data-manager objects shared by process runs.

SetupContext([workspace, geographic, ...])

Objects prepared during setup and reused by all runs.

ResolvedSimulationTimeWindow(start, end, ...)

Normalized runtime representation of [simulation.time].

WhiteboxWorkflowsBackend()

Facade aggregating raster IO, flow analysis and delineation backends.