-
Notifications
You must be signed in to change notification settings - Fork 32
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
[5pt] PR: Bug fixes for Sierra test (vertical lines) #1388
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.
If a location_id has more than one feature_id, would it make sense to use the feature_id with the highest flow instead of the first feature_id?
Carson mentioned to use the feature_id from branch 0 (when it is possible) for consistency. |
…into dev-fix-sierra
The vertical lines (recurrence intervals) do not appear in the Sierra test plots. This PR tries to fix this issue as much as possible. Some locations still do not have any vertical lines because they lack USGS rating curve data (missing USGS rating curve data for USGS station x in HUC y). Therefore, this is not a problem.
However, the vertical lines were not plotted previously for some location_ids with more than one feature_id. This FB will always use the first feature_id to plot the vertical lines unless its flow is significantly lower than the USGS maximum flow.
Changes
tools/rating_curve_comparison.py
: Modified the script to make sure vertical lines are displayed.Testing
I tested this branch for HUCs
05010006
,15050302
,07140104
.Deployment Plan (For developer use)
How does the changes affect the product?
Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.
[_pt] PR: <description>
dev
branch (the default branch), you have a descriptive Feature Branch name using the format:dev-<description-of-change>
(e.g.dev-revise-levee-masking
)dev
branchpre-commit
hooks were run locally4.x.x.x
Merge Checklist (For Technical Lead use only)