Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten edge validation #1434

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Tighten edge validation #1434

merged 2 commits into from
Apr 29, 2024

Conversation

visr
Copy link
Member

@visr visr commented Apr 28, 2024

Since LevelDemand and FlowDemand were not AbstractParameterNodes, their connections were not being validated despite the constraints being set properly. I noticed since they don't show up in the tables in https://deltares.github.io/Ribasim/core/validation.html.

LinearResistance and ManningResistance already required 1 in and 1 outflow, just not in validation.

Basin already cannot have outgoing control edges.

Also removes an outdated comment about ribasim.cmd. We now only have one ribasim.exe since #1415.

visr added 2 commits April 28, 2024 21:03
Since LevelDemand and FlowDemand were not AbstractParameterNodes, their connections were not being validated despite the constraints being set properly.

LinearResistance and ManningResistance already required 1 in and 1 outflow, just not in validation.

Basin already cannot have outgoing control edges.
@visr visr added the validation Related to model validation label Apr 28, 2024
Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

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

Good stuff 👍

@visr visr merged commit db517dd into main Apr 29, 2024
24 checks passed
@visr visr deleted the valid-edge-cases branch April 29, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation Related to model validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants