hydromodpy.project.phases#

Model-phase adapter verbs used by Project.

Split from hydromodpy.project.facade so the facade keeps the run/lifecycle API only.

Functions here mutate the Project instance directly and call the same workflow.steps helpers that the full Pipeline uses. They are not a second execution engine; they only adapt the shared step logic to the interactive phase verbs (prepare and the per-phase builders).

Functions

build_geographic(project, *[, reuse_dem])

Expose the geographic/domain runtime as ready for later phases.

build_mesh(project, **overrides)

Build the catchment mesh from the current geographic context.

configure(project, config, *, solver, ...)

Resolve the config, time grid and data plan, then build an empty ctx.

detect_solver(project)

Resolve the flow solver from the declared process list or solver block.

ensure_simulation_block(project)

Synthesize [simulation] from [data.recharge] when it is absent.

load_data(project, *[, types])

Load the external forcings declared in [data].

open_catalog(project)

Open the SimulationCatalog for this workspace (idempotent).

rebuild_geographic(project, *[, reuse_dem])

Rerun the geographic pipeline and invalidate the mesh.

reload_data(project, *, types)

Reload a subset of data variables without touching the others.

setup_workspace(project)

Bootstrap shared runtime state for a Project session.