From 5bae3439c1fd2fa95459ccfcbde7da84571f79bc Mon Sep 17 00:00:00 2001 From: David Huard Date: Mon, 6 Oct 2025 15:20:52 -0400 Subject: [PATCH 1/3] Add the GaugedSubBasinGroup command to the RVH class --- src/ravenpy/config/rvs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ravenpy/config/rvs.py b/src/ravenpy/config/rvs.py index 3dc17bdb..6de0945c 100644 --- a/src/ravenpy/config/rvs.py +++ b/src/ravenpy/config/rvs.py @@ -176,6 +176,7 @@ class RVH(RV): sub_basin_group: Optional[Sequence[rc.SubBasinGroup]] = optfield(alias="SubBasinGroup") sub_basin_properties: Optional[rc.SubBasinProperties] = optfield(alias="SubBasinProperties") sb_group_property_multiplier: Optional[Sequence[rc.SBGroupPropertyMultiplier]] = optfield(alias="SBGroupPropertyMultiplier") + gauged_sub_basin_group: Optional[str] = optfield(alias="GaugedSubBasinGroup") hrus: Optional[rc.HRUs] = optfield(alias="HRUs") hru_group: Optional[Sequence[rc.HRUGroup]] = optfield(alias="HRUGroup") reservoirs: Optional[Sequence[rc.Reservoir]] = optfield(alias="Reservoirs") From eec1b32e46bc116d2a2acbefdda2e5c3985a2129 Mon Sep 17 00:00:00 2001 From: David Huard Date: Mon, 6 Oct 2025 15:41:13 -0400 Subject: [PATCH 2/3] update CHANGELOG --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3505224c..dfb69036 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ Contributors: David Huard (:user:`huard`), Trevor James Smith (:user:`Zeitsperre Fixes ^^^^^ +* Fix `Reservoir` command parser failing when optional fields were missing. (PR #544) * In `nc_specs`, set `dim_names_nc` in the order expected by Raven (x, y, t). Previously, we only made sure that `time` was the last dimension, but did not ensure x and y were in the right order. (PR #533) * Adjusted the `Perform_a_climate_change_impact_study_on_a_watershed.ipynb` notebook to reduce the number of years in the simulation to speed up execution time. (PR #535) * Adjusted a broken test that was overlooked in the previous release (from changes in PR #513). (PR #535) From b77415c6e1a21c0de4b86acbb9c951b80e091b1b Mon Sep 17 00:00:00 2001 From: David Huard Date: Mon, 6 Oct 2025 15:48:47 -0400 Subject: [PATCH 3/3] update changelog --- CHANGELOG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dfb69036..22d9b517 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,7 +9,7 @@ Contributors: David Huard (:user:`huard`), Trevor James Smith (:user:`Zeitsperre Fixes ^^^^^ -* Fix `Reservoir` command parser failing when optional fields were missing. (PR #544) +* Add `GaugedSubBasinGroup` command to `RVH` class. (Issue #546, PR #547) * In `nc_specs`, set `dim_names_nc` in the order expected by Raven (x, y, t). Previously, we only made sure that `time` was the last dimension, but did not ensure x and y were in the right order. (PR #533) * Adjusted the `Perform_a_climate_change_impact_study_on_a_watershed.ipynb` notebook to reduce the number of years in the simulation to speed up execution time. (PR #535) * Adjusted a broken test that was overlooked in the previous release (from changes in PR #513). (PR #535)