hydromodpy.calibration#
Calibration sub-system.
- Public surface:
CalibrationEngine: the orchestrator
Optimizer / Objective / Evaluator: Protocol contracts
Calibrable: Pydantic-field annotation marking a calibrable parameter
discover_calibrable: auto-discover calibrable fields in a config tree
build_optimizer: adapter registry lookup
Modules
Optimizer adapters: scipy, optuna, grid. |
|
Content-addressable calibration cache. |
|
Reference calibration cases ported from the legacy analysis module. |
|
CLI entry point |
|
Pydantic model for the |
|
Lightweight diagnostics helpers for calibration iteration traces. |
|
CalibrationEngine - orchestrates an ask/tell loop. |
|
Lumped catchment models used as calibration targets. |
|
Materialise a self-contained TOML overlay for one calibration candidate. |
|
Discriminated union for the calibration method + optimizer kwargs. |
|
RAM metric extraction for lightweight calibration trials. |
|
Natural-observation helpers for network/discharge calibration. |
|
Truth-package helpers for network/transient calibration prototypes. |
|
Objective Protocol - computes a cost from observed vs simulated data. |
|
Parse evaluated objective points from calibration iteration histories. |
|
Optimizer Protocol and registry. |
|
Calibrable parameters: annotations, space, transforms, discovery. |
|
DuckDB persistence for calibration sessions and iterations. |
|
Programmatic entry point |
|
Top-N promotion of calibration trials. |
|
Calibration session data structures and loaders. |
|
Reusable calibration report builders. |
|
Calibration runners (trial drivers) layer. |
|
Shared state primitives reused by both calibration runners. |