hydromodpy.workflow.steps.prepare_solver.prepare#

Concern 1 of PrepareSolverStep: persistence helpers.

Hosts the helpers that write inputs to disk before the solver runs:

  • parameter writes via step_persist_params()

  • mesh persistence via step_persist_mesh()

  • geographic raster persistence via step_persist_geographic()

  • provenance fingerprints via step_write_provenance()

  • forcings persistence via step_persist_forcings()

The functions stay free-standing so notebook helpers and the orchestrator prepared-run path keep importing them by name.

Functions

step_persist_forcings(ctx)

Persist input forcings into the Zarr forcing/ group.

step_persist_geographic(ctx, sim_id)

Persist the geographic rasters (DEM, watershed masks) into the Zarr.

step_persist_mesh(ctx, sim_id)

Write mesh topology into the simulation's Zarr.

step_persist_params(store, sim_id, flow, *)

Write hydraulic parameters from a Flow object into the catalog.

step_write_provenance(ctx)

Record provenance fingerprints for each loaded data variable.