Skip to content

Stricter TabulatedRatingCurve validation#1469

Merged
visr merged 3 commits into
mainfrom
qh_check
May 21, 2024
Merged

Stricter TabulatedRatingCurve validation#1469
visr merged 3 commits into
mainfrom
qh_check

Conversation

@visr
Copy link
Copy Markdown
Member

@visr visr commented May 14, 2024

Fixes a part of #279.

The four checks added here are:

  • At least two datapoints are needed.
  • The flow_rate must start at 0.
  • The level cannot be repeated.
  • The flow_rate cannot decrease with increasing level.

And additionally we now ensure that flow rates are kept at 0 for levels below the minimum.

I should still check the docs, they may need some updating. The other part of #279 is best done in a separate PR as it relates to the Basin / profile table.

@visr visr mentioned this pull request May 14, 2024
7 tasks
@visr visr marked this pull request as ready for review May 14, 2024 20:59
Copy link
Copy Markdown
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.

Lookin good

Comment thread docs/core/usage.qmd Outdated
Co-authored-by: Bart de Koning <74617371+SouthEndMusic@users.noreply.github.com>
@visr visr merged commit 224c460 into main May 21, 2024
@visr visr deleted the qh_check branch May 21, 2024 09:51
SouthEndMusic pushed a commit that referenced this pull request May 21, 2024
Fixes #279.
Follow up of #1469.

Most rules were already in place, this just adds a bit more validation.
I moved the validation out of the constructor to be more in line with
the other validation taking place.
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.

2 participants