hmp.report#
Render the HTML report for a calibration session.
Signature#
hmp.report(session_id_or_prefix=None, *, workspace=None) -> Any
Reference#
- 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")
Example#
import hydromodpy as hmp
# Latest session in the nearest workspace
hmp.report()
# Explicit session and workspace
hmp.report("ab12cd34", workspace="~/hmp_workspace")
See Also#
hydromodpy.calibrate()– run the calibration that produces the session.hydromodpy.open()– open the workspace catalog used to resolve session ids.hydromodpy.calibration– calibration package.