report#
- hydromodpy.report(session_id_or_prefix=None, *, workspace=None)[source]#
Render the HTML report for a calibration session.
session_id_or_prefixaccepts a full UUID, a unique hex prefix, orNoneto fall back to the most recently started session.workspacedefaults to the nearest ancestor of the current working directory containingcatalog.duckdb.Parameters#
- session_id_or_prefix
Full session UUID, unique hex prefix, or
Nonefor the latest session.- workspace
Optional workspace directory.
Returns#
- Any
Report rendering result.
Raises#
- hydromodpy.results.errors.RunNotFoundError
If no calibration session matches
session_id_or_prefix.- hydromodpy.core.exceptions.DisplayError
If the report template or one of its figures fails to render.
Examples#
>>> import hydromodpy as hmp >>> hmp.report() # latest session in the current workspace >>> hmp.report("ab12cd34", workspace="~/hmp_workspace")