-
Notifications
You must be signed in to change notification settings - Fork 10
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
23 xarray utility #125
23 xarray utility #125
Conversation
… dtypes and values of the dimensions. - prototype!
Codecov Report
@@ Coverage Diff @@
## master #125 +/- ##
=======================================
Coverage 99.53% 99.54%
=======================================
Files 126 126
Lines 6952 7016 +64
=======================================
+ Hits 6920 6984 +64
Misses 32 32
Continue to review full report at Codecov.
|
…into 23_xarray_utility
…ded exceptions in xr_check_coords.
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 good 👍
- maybe add more test cases
- add docstrings (ideally with examples)
- implement missing functions
- code and repo cleanup
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.
Added some reminders via review so that those issues won't be forgotten
Hello @mark141! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-10-09 08:13:03 UTC |
Added functionalities are now all in one function
Other achievements:
|
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.
- add support for general
"timedelta64"
and"datetime64"
dtype description as discussed - add changelog entry
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.
see my comment for final code changes :)
suggestion accepted! Co-authored-by: Cagtay Fabry <43667554+CagtayFabry@users.noreply.github.com>
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 good so far. My comments are just nitpicking, but the stuff should be added relatively easy
Co-authored-by: vhirtham <volker.hirthammer@bam.de>
The following checks are now implemented:
Input should be a nested dict with an
array
for the values:usage:
utility.xr_check_coords(dax: xr.DataArray, ref: dict)
utility.xr_check_dtype(dax: xr.DataArray, ref: dict)
missing: