SpinupResult#

MemberKindWhat it is
n_cyclespropertyNumber of cycles that ran.
antecedent_warningmethodReturn what to say before this state is used as an antecedent.
to_dictmethodReturn the outcome as JSON: the cycles, restart_from and the warning to give.
production_sim_idattributeId of the production run chained after the loop (--then-run), else None.
class SpinupResult(converged, cycles, restart_from, production_sim_id=None)[source]#

Outcome of a spin-up loop.

restart_from is the converged (or last) cycle’s Zarr path, ready to feed a production run’s [flow] restart_from.

antecedent_warning()[source]#

Return what to say before this state is used as an antecedent.

A loop that ran out of cycles still hands back its last state, and a production run seeded from it produces a result that looks exactly like one seeded from a settled aquifer. Whoever uses it has to be told.

to_dict()[source]#

Return the outcome as JSON: the cycles, restart_from and the warning to give.

A cycle gives its index, d_head and d_stage. warning is antecedent_warning(), None for a loop that converged.

converged: bool#

True when a cycle changed the heads and the lake stages by less than the tolerances. False when the loop ran out of cycles first.

cycles: list[SpinupCycle]#

Every cycle that ran, in order.

property n_cycles: int[source]#

Number of cycles that ran.

production_sim_id: str | None = None#

Id of the production run chained after the loop (--then-run), else None.

restart_from: str#

fields.zarr path of the converged cycle, or of the last one.