-
Notifications
You must be signed in to change notification settings - Fork 2
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
77 setup 1d laterals #81
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi @hboisgon , I have finalized the 1D lateral branch needed for PUB. could you please review it? Thanks! |
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.
Nice work @xldeltares! I have some suggestions for geodataset objects especially in the workflow before approving and merging.
I still wonder if separating functions for boundaries and laterals into constant and timeseries (geodataset) would not make things more clear both for user and developper? If so can be tackled here or open an issue for later.
While reviewing I also think we might want to open some issues in core. They wont be solved and released fast I guess so we can keep what we have here as well.
time_tuple=(tstart, tstop), | ||
).rename(forcing_name) | ||
# error if time mismatch | ||
if np.logical_and( |
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.
Does this happen? Now that I think I think I had the issue with wflow. Might be an idea to have better support in core then ie an option to raise error when reading if time mismatch or no error but return a flag or dataset actual (start, end) tuple. What do you think?
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.
I think it is mainly because the datetime parsing in case of a csv. It could easily go wrong. In that case, we issue an error and ask explicitly for yyyy-mm-dd HH:MM:SS.
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.
Csv or netcdf maybe still an issue for core? That if a time_tuple is passed to any of the get_data we should do an extra check in core to make sure the slicing happened?
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.
Yes, true! I added this request to hydromt issues.: Deltares/hydromt#665
I had a look at Deltares/hydromt#613 and fixed it in a PR. Good catch! Not sure about when it would be released though so we may have to keep your workaround (if any) longer and open an issue to remind us to come back to it when hydromt is released again (shame it was not in the release from last week). |
HI @hboisgon , thanks for the nice review and feedback! I agree with your comments on the current way of setting up forcing. I think that should be a more general discuss, therefore, a new issue has been created: #117 . It is a quite big issue and several sub issues can be created from it, but for now I kept it as one big issue. Hope that we could pick it up earlier next year! Could you re-review this PR (hopefully an easy approve) and also check if you agree with #117? note that the sonarcloud code is not passing because of two critical cognitive complex functions |
Hi @xldeltares , thanks for the changes! Looks good to merge now. I think that the quality gate is failing because of code duplication (should be <= 3%). If all looks good we can merge and for the remaining 0.1% duplication, I leave it up to you if it is worth the effort |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@hboisgon , nice changes! I did similar for the rest of the duplication so we are now green! will merge the pull request and close the branch. |
Issue addressed
Fixes #77
Explanation
Explain how you addressed the bug/feature request, what choices you made and why.
Checklist
main
update boundares.py when could not reproject for geodataset hydromt#613 is resolved. --> wait for the next releaseAdditional Notes (optional)
Add any additional notes or information that may be helpful.