hmp.status()#
- Command line
hmp ls - Returns
RunOutcome,RunOutcome,StatusReport - Defined in
hydromodpy/project/api.py
- status(ref=None, *, workspace=None, plan=False, stale_after_s=None)[source]#
Say where runs and sessions stand, read from the disk and never from the index.
Without a reference, one
RunOutcomeper directory ofruns/andsessions/of the project, sorted by name. With a reference, the outcome of that one, with its deliveries. Withplan=True, where each case of the plan of a[sites]project stands, theStatusReportofproject_status, whoseto_dict()is whathmp ls --plan --format jsonprints.- Parameters:
ref (Ref | None) – A run or a session (a directory, a name in
workspace, the object), or a project (its directory,"."inworkspace, the object).workspace (PathLike | None) – The project directory, or a folder inside it.
plan (bool) – Read the plan of the project instead of its directories.
stale_after_s (float | None) – Seconds after which a live run that stopped writing is called stale.
Nonekeeps the default.
- Returns:
RunOutcome or list of RunOutcome or StatusReport – See above.
- Raises:
hydromodpy.core.exceptions.CommandUsageError – If neither a reference nor
workspacenames the project.hydromodpy.results.catalog.discovery.SimulationNotFoundError – If the reference names nothing.
- Return type: