hydromodpy.calibration.cli_runner#
CLI entry point hmp calibrate <calibration.toml>.
Workflow:
Load the TOML and validate the
[calibration]section into aCalibrationConfig.Prepare the downstream pipeline once via
prepare_trials(), reusing the earliest-affected-step optimisation so setup phases do not re-run per trial.Drive the ask/tell loop through
CalibrationEngine, where each evaluation forks the prepared context, runs the solver in lightweight mode, and extracts the objective in RAM viahydromodpy.calibration.metrics.build_metric_extractor().Persist every iteration into the DuckDB
calibration_iterationstable (sim_idleftNULLby default).Honor
save_runs–"best_n"/"all"promote the chosen trials throughhydromodpy.calibration.promotion.
The objective argument is a Python escape hatch
("module.path:fn") for users who need a custom scalar – the TOML
[calibration].objective + [calibration].variable pair already
covers the standard NSE / KGE / RMSE cases.
Functions
|
Run a calibration described by |
|
Heart of the calibration loop. |