holmes-rs 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holmes_rs-0.3.0/CHANGELOG.md +43 -0
- holmes_rs-0.3.0/Cargo.lock +723 -0
- holmes_rs-0.3.0/Cargo.toml +45 -0
- holmes_rs-0.3.0/LICENSE +7 -0
- holmes_rs-0.3.0/PKG-INFO +310 -0
- holmes_rs-0.3.0/README.md +289 -0
- holmes_rs-0.3.0/pyproject.toml +34 -0
- holmes_rs-0.3.0/python/holmes_rs/__init__.py +23 -0
- holmes_rs-0.3.0/python/holmes_rs/__init__.pyi +30 -0
- holmes_rs-0.3.0/python/holmes_rs/calibration/__init__.pyi +5 -0
- holmes_rs-0.3.0/python/holmes_rs/calibration/sce.pyi +47 -0
- holmes_rs-0.3.0/python/holmes_rs/hydro/__init__.pyi +7 -0
- holmes_rs-0.3.0/python/holmes_rs/hydro/bucket.pyi +12 -0
- holmes_rs-0.3.0/python/holmes_rs/hydro/cequeau.pyi +12 -0
- holmes_rs-0.3.0/python/holmes_rs/hydro/gr4j.pyi +12 -0
- holmes_rs-0.3.0/python/holmes_rs/metrics.pyi +15 -0
- holmes_rs-0.3.0/python/holmes_rs/pet/__init__.pyi +5 -0
- holmes_rs-0.3.0/python/holmes_rs/pet/oudin.pyi +8 -0
- holmes_rs-0.3.0/python/holmes_rs/snow/__init__.pyi +5 -0
- holmes_rs-0.3.0/python/holmes_rs/snow/cemaneige.pyi +14 -0
- holmes_rs-0.3.0/rustfmt.toml +2 -0
- holmes_rs-0.3.0/src/calibration/mod.rs +17 -0
- holmes_rs-0.3.0/src/calibration/sce.rs +909 -0
- holmes_rs-0.3.0/src/calibration/utils.rs +184 -0
- holmes_rs-0.3.0/src/errors.rs +100 -0
- holmes_rs-0.3.0/src/hydro/bucket.rs +189 -0
- holmes_rs-0.3.0/src/hydro/cequeau.rs +216 -0
- holmes_rs-0.3.0/src/hydro/gr4j.rs +252 -0
- holmes_rs-0.3.0/src/hydro/mod.rs +28 -0
- holmes_rs-0.3.0/src/hydro/utils.rs +151 -0
- holmes_rs-0.3.0/src/lib.rs +30 -0
- holmes_rs-0.3.0/src/metrics.rs +292 -0
- holmes_rs-0.3.0/src/pet/mod.rs +13 -0
- holmes_rs-0.3.0/src/pet/oudin.rs +68 -0
- holmes_rs-0.3.0/src/pet/utils.rs +148 -0
- holmes_rs-0.3.0/src/snow/cemaneige.rs +235 -0
- holmes_rs-0.3.0/src/snow/mod.rs +22 -0
- holmes_rs-0.3.0/src/snow/utils.rs +208 -0
- holmes_rs-0.3.0/src/utils.rs +45 -0
- holmes_rs-0.3.0/tests/common/fixtures.rs +75 -0
- holmes_rs-0.3.0/tests/common/helpers.rs +123 -0
- holmes_rs-0.3.0/tests/common/mod.rs +2 -0
- holmes_rs-0.3.0/tests/fixtures/README.md +29 -0
- holmes_rs-0.3.0/tests/fixtures/calibration_scenario.json +6 -0
- holmes_rs-0.3.0/tests/fixtures/observations_constant.csv +11 -0
- holmes_rs-0.3.0/tests/fixtures/observations_normal.csv +32 -0
- holmes_rs-0.3.0/tests/integration/calibration_workflow.rs +692 -0
- holmes_rs-0.3.0/tests/integration/full_simulation.rs +518 -0
- holmes_rs-0.3.0/tests/integration.rs +12 -0
- holmes_rs-0.3.0/tests/python_integration/README.md +50 -0
- holmes_rs-0.3.0/tests/python_integration/conftest.py +52 -0
- holmes_rs-0.3.0/tests/python_integration/test_calibration.py +652 -0
- holmes_rs-0.3.0/tests/python_integration/test_hydro.py +433 -0
- holmes_rs-0.3.0/tests/python_integration/test_metrics.py +178 -0
- holmes_rs-0.3.0/tests/python_integration/test_pet.py +160 -0
- holmes_rs-0.3.0/tests/python_integration/test_snow.py +286 -0
- holmes_rs-0.3.0/tests/unit/calibration/mod.rs +2 -0
- holmes_rs-0.3.0/tests/unit/calibration/sce_tests.rs +1224 -0
- holmes_rs-0.3.0/tests/unit/calibration/utils_tests.rs +392 -0
- holmes_rs-0.3.0/tests/unit/hydro/bucket_tests.rs +496 -0
- holmes_rs-0.3.0/tests/unit/hydro/cequeau_tests.rs +671 -0
- holmes_rs-0.3.0/tests/unit/hydro/gr4j_tests.rs +564 -0
- holmes_rs-0.3.0/tests/unit/hydro/mod.rs +3 -0
- holmes_rs-0.3.0/tests/unit/metrics_tests.rs +514 -0
- holmes_rs-0.3.0/tests/unit/pet/mod.rs +1 -0
- holmes_rs-0.3.0/tests/unit/pet/oudin_tests.rs +514 -0
- holmes_rs-0.3.0/tests/unit/snow/cemaneige_tests.rs +1201 -0
- holmes_rs-0.3.0/tests/unit/snow/mod.rs +1 -0
- holmes_rs-0.3.0/tests/unit.rs +21 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the holmes-rs Rust extension will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.3.0] - 2026-01-31
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- CEQUEAU hydrological model (`hydro::cequeau`) with 9 parameters, surface/groundwater routing, and unit hydrograph delay
|
|
12
|
+
- Python bindings and type stubs for the CEQUEAU module (`init`, `simulate`, `param_names`)
|
|
13
|
+
- `param_descriptions` constant for all hydro models (GR4J, bucket, CEQUEAU) with human-readable parameter descriptions, exposed via Python bindings and type stubs
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Renamed bucket model parameters from descriptive names (`c_soil`, `alpha`, `k_r`, `delta`, `beta`, `k_t`) to generic names (`x1`–`x6`), matching the convention used by GR4J and CEQUEAU
|
|
17
|
+
- Simplified `WrongModel` error messages to remove hardcoded model lists
|
|
18
|
+
|
|
19
|
+
## [0.2.3] - 2026-01-24
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- `warmup_steps` parameter to `Sce::init()` and `Sce::step()` methods
|
|
23
|
+
- Allows excluding initial warmup period from objective function calculations
|
|
24
|
+
- Ensures metrics are computed only on the user-requested evaluation period
|
|
25
|
+
|
|
26
|
+
## [0.2.2] - 2026-01-17
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- Made snow model parameters (`temperature`, `elevation_bands`, `median_elevation`) optional in SCE calibration API
|
|
30
|
+
- Updated `Sce::init()` and `Sce::step()` to accept `Option` types for snow-related parameters
|
|
31
|
+
- Calibration without snow model no longer requires temperature or elevation data
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- `MissingSnowParams` error variant to `CalibrationError` for clearer error handling when snow model is configured but required parameters are missing
|
|
35
|
+
|
|
36
|
+
## [0.2.1] - 2026-01-11
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
- Anti-fragility improvements for more robust error handling and recovery
|
|
40
|
+
- Comprehensive README with usage examples, model documentation, and API reference
|
|
41
|
+
- MIT LICENSE file
|
|
42
|
+
- Package metadata in pyproject.toml (authors, license, repository URLs)
|
|
43
|
+
- Exception type stubs (`HolmesError`, `HolmesNumericalError`, `HolmesValidationError`) in type hints
|