-
Notifications
You must be signed in to change notification settings - Fork 5
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
Validate level with upstream basin #1607
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks quite close, I have left some comments.
In the validation of tabulated rating curve level, currently many models that has tabulated rating curve with upstream basin fails. The reason is that in the Ribasim python, the level is [0.0 1.0], but during initialization, we add 1.0 to avoid negative extrapolation for Q (line 121) Once an idea of during validation before the parameter initialization came up, but it is found to be impossible because the validation request the graph information. For now, I add the 1.0 back during the validation But this make us question the robustness of the extrapolation Huite opened an issue to research this robustness problem #1621 |
This is like #1607, but now running the same validation for Pump instead of only Outlet, because Pump now also supports `min_upstream_level`.
Fixes #1591
An error will be given when the
level
in tabulated rating curve is lower than upstream bottom.An error will be given when the
min_crest_level
in outlet is lower than upstream bottom. In the validation function, it will set themin_crest_level
to the basin bottom if this parameter was not specified.