-
Notifications
You must be signed in to change notification settings - Fork 51
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
Ngen fixes #592
base: master
Are you sure you want to change the base?
Ngen fixes #592
Conversation
@hellkite500 Per discussion, I think this fixes one or more of #581 , #582 , and #583 ? Can you comment on which? |
5cb622a
to
f1b7a18
Compare
if qlat_values.shape[1] < nsteps: | ||
raise ValueError(f"Number of columns (timesteps) in Qlat is incorrect: expected at most ({data_idx.shape[0]}), got ({qlat_values.shape[1]}). The number of columns in Qlat must be equal to or less than the number of routing timesteps") | ||
if qlat_values.shape[1] < nsteps/qts_subdivisions: | ||
raise ValueError(f"Number of columns (timesteps) in Qlat is incorrect: expected at least ({data_idx.shape[1]/(nsteps/qts_subdivisions)}), got ({qlat_values.shape[1]}). The number of columns in Qlat must be at least the number of routing timesteps") |
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.
qts_subdivisions in Line 225 should be equal to dt_qlat / dt, where dt_qlat and dt are lateral flow data time interval and channel routing time interval, respectively.
#but it isn't clear right now how to do that with flow/velocity/depth requirements | ||
#find the terminal nodes | ||
for tnx, up in terminal_links.items(): | ||
print(up, tnx) |
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.
Is this print supposed to be here?
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.
Only if you like non-contextual debugging information.
A couple fixes on hy_features network with relation to handling terminal links and qlateral flows, and (another) fix in the validation logic for the length of qlats. These changes were tested on the ngen branch and ported over here to keep these classes in sync as much as possible between the branches until we get a
main
on the master branch.Additions
Removals
Changes
Testing
Checklist
Target Environment support