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 or a unique hex prefix of either a calibration session or one of its runs (an iteration or the promoted best run, as printed byhmp catalog ls); the run reference is mapped to its parent session.Nonefalls back to the most recently started session.workspacedefaults to the nearest ancestor of the current working directory holding a project index database.When
workspaceis a workspace root, the lookup federates across everyprojects/<name>catalog, matching howhmp catalog lslists runs.Parameters#
- session_id_or_prefix
Full UUID or unique hex prefix of a session or one of its runs, or
Nonefor the latest session.- workspace
Optional workspace root or project 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.