hydromodpy.simulation#

Simulation orchestration models and planning helpers.

Functions

ensure_flow(state)

Create state.setup.flow from state.cfg.flow when missing.

ensure_process_context(state, process_type)

Ensure all process objects required by process_type exist.

ensure_transport(state)

Create state.setup.transport from state.cfg.transport when missing.

Classes

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.

ProcessRun(id, process_id, process_type, solver)

One concrete execution unit produced by the planner.

RunContext(plan, run, state[, dependency_models])

Resolved runtime context passed to one solver adapter.

RunExecutionResult(primary_model[, ...])

Payload returned by a solver adapter after one run completes.

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

Objects prepared during setup and reused by all runs.

ResolvedSimulationTimeWindow(start, end, ...)

Normalized runtime representation of [simulation.time].

SimulationPlan(name, description[, runs])

Resolved execution schedule ready for runtime orchestration.

SimulationPlanner()

Validate simulation config and emit concrete runnable units.

Workspace(config)

Prepare and expose the folder structure for one project workspace.