hmp.compare_pair#
Compare two simulations by id or result object.
Signature#
hmp.compare_pair(sim_a, sim_b, *, workspace=None) -> pandas.DataFrame
Reference#
- hydromodpy.compare_pair(sim_a, sim_b, *, workspace=None)[source]
Compare two simulations by id or result object.
Parameters#
- sim_a, sim_b
Simulation ids or objects accepted by the comparison runtime.
- workspace
Optional workspace used to resolve simulation ids.
Returns#
- pandas.DataFrame
Side-by-side comparison table.
Raises#
- hydromodpy.results.errors.RunNotFoundError
If either simulation id cannot be resolved in the workspace.
Examples#
>>> import hydromodpy as hmp >>> table = hmp.compare_pair( ... "ab12cd34", "ef56gh78", workspace="~/hmp_workspace" ... )
See Also#
- hydromodpy.analysis.comparison
Comparison package used by this helper.
Example#
import hydromodpy as hmp
table = hmp.compare_pair("ab12cd34", "ef56gh78", workspace="~/hmp_workspace")
See Also#
hydromodpy.compare()– comparison workflow driven by a TOML config.hydromodpy.open()– open a workspace to resolve simulation ids.hydromodpy.analysis.comparison– comparison package.