ProjectRunner#
- class hydromodpy.project.ProjectRunner(project)[source]#
Bases:
objectRun-phase methods bound to a
Projectinstance.Composed by
Project(project._runner). Holds no state of its own besides the back-reference toprojectand a delegate for the prepared-run primitives; every call reads or mutates the project’s workflow context directly.- Parameters:
project (
Project)
- run(*, name=None, resume=None, from_step=None, until_step=None, dry_run=False, frozen=False, no_display=False, parallel=True, **overrides)[source]#
Run the simulation through the canonical workflow Pipeline.
parallel(default True) lets the Pipeline dispatch independent Kahn cohorts through a thread pool. Passparallel=Falseto force the legacy sequential path (useful for debugging).
- sweep(parameters, *, strategy='enumerate', name_template='{param}_{value:.4g}', parallel=1)[source]#
Run N simulations from a parameter table.
parallel > 1enables the thread-pool backend inhydromodpy.workflow.parallel.run_sweep(). Threads are chosen over processes because the liveProject(DuckDB catalog, Zarr store, in-memoryWorkflowContext) is not pickle-safe.