Skip to content

Fix reservoirs outside rivers#777

Merged
ClaireDons merged 26 commits into
mainfrom
fix-reservoirs-outside-rivers
Jul 7, 2026
Merged

Fix reservoirs outside rivers#777
ClaireDons merged 26 commits into
mainfrom
fix-reservoirs-outside-rivers

Conversation

@ClaireDons

@ClaireDons ClaireDons commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Issue addressed

Fixes #724

Explanation

Added ability for users to exclude reservoirs that are outside of the river network (no cells overlapping) by adding an exclude_outside_reservoirs flag, which is by default set to False.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Tests & pre-commit hooks pass
  • Updated documentation if needed

Additional Notes (optional)

Add any additional notes or information that may be helpful.

@ClaireDons ClaireDons marked this pull request as ready for review July 1, 2026 14:53
Comment thread hydromt_wflow/workflows/reservoirs.py
Comment thread hydromt_wflow/workflows/reservoirs.py Outdated
Comment thread tests/test_model_methods.py Outdated
@ClaireDons ClaireDons requested a review from LuukBlom July 6, 2026 13:57

@LuukBlom LuukBlom left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Code LGTM, only very minor comments left about the tests

Comment thread tests/test_model_methods.py Outdated
Comment thread tests/test_model_methods.py Outdated
Comment thread tests/test_model_methods.py Outdated
@ClaireDons ClaireDons requested a review from LuukBlom July 6, 2026 14:42
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
45.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@ClaireDons ClaireDons merged commit 7b0877f into main Jul 7, 2026
11 of 13 checks passed
@ClaireDons ClaireDons deleted the fix-reservoirs-outside-rivers branch July 7, 2026 08:55
@ClaireDons ClaireDons restored the fix-reservoirs-outside-rivers branch July 7, 2026 09:31
LuukBlom added a commit that referenced this pull request Jul 7, 2026
@LuukBlom LuukBlom deleted the fix-reservoirs-outside-rivers branch July 7, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reservoir nodes outside river pixels

2 participants