hmp.spinup()#
- Command line
hmp spinup - Returns
SpinupResult - Defined in
hydromodpy/project/api.py
-
spinup(
)[source]#source,*,base=None,spinup=None,name_prefix='spinup',then_run=False,headless=True,environment=None,
Run a cyclic spin-up, and a production run from its state when asked.
Repeats the representative window (
[spinup] window_*, else[simulation.time]), each cycle from the state of the one before, until the heads and the lake stage converge. One project is kept so the mesh is the same across cycles.- Parameters:
source (Source) – A TOML file, a document as a mapping or JSON text, or a validated
HydroModPyConfig.base (PathLike | None) – The folder the relative paths of the document are read from.
spinup (SpinupConfig | Mapping[str, Any] | None) – Settings that replace the
[spinup]section, as a mapping or as aSpinupConfig.name_prefix (str) – Prefix of the run name of each cycle.
then_run (bool) – Chain a production run from the converged state, over
[simulation.time].headless (bool) – Draw no figure.
environment (Environment | None) – The environment of the call.
Nonebuilds the default of the machine.
- Returns:
SpinupResult – The outcome of the loop,
restart_fromincluded, and thesim_idof the production run when one was chained.- Return type:
Keyword arguments and command-line flags#
The twin command is hmp spinup.
| Keyword | Default | Command-line flag | Accepted by |
|---|---|---|---|
base | None | no flag | every form |
spinup | None | no flag | every form |
name_prefix | 'spinup' | no flag | every form |
then_run | False | --then-run | every form |
headless | True | no flag | every form |
environment | None | no flag | every form |