Skip to content

fix: raise clear error if hydro plant is outside all basins - #548

Open
fneum wants to merge 4 commits into
masterfrom
fix/hydro-basin-not-found
Open

fneum wants to merge 4 commits into
masterfrom
fix/hydro-basin-not-found

Conversation

@fneum

@fneum fneum commented Nov 16, 2026

Copy link
Copy Markdown
Member
  • find_basin raised an unclear IndexError when a plant is outside all hydrobasins; it now raises a ValueError naming the point.
  • Adds test/test_hydro.py.

Closes #188.

🤖 Generated with Claude Code

fneum and others added 2 commits November 16, 2026 16:03
@fneum fneum mentioned this pull request Nov 16, 2026
fneum and others added 2 commits November 16, 2026 16:14
@fneum

fneum commented Nov 16, 2026 •

Copy link
Copy Markdown
Member Author

Should be very uncontroversial.

@fneum
fneum enabled auto-merge (squash) November 16, 2026 15:17

This branch has not been deployed

No deployments
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.

unmanaged out of shape exception in hydro: index 0 is out of bounds for axis 0 with size 0

1 participant