-
Notifications
You must be signed in to change notification settings - Fork 283
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
removed redundant timeattr check and added tests to ensure datetime/c… #5396
Conversation
…ftime.datetime/partialdatetime play nicely.
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.
Thanks for looking into this @acchamber.
Some comments below, plus this needs a What's New entry.
…o fix_for_#5175 * 'fix_for_#5175' of https://github.com/acchamber/iris: Added link to UDUNITS-2 database to convert_units docstrings (SciTools#5388)
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.
Definitely getting there, thanks for actioning my last review. Three things left:
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #5396 +/- ##
==========================================
- Coverage 89.39% 89.39% -0.01%
==========================================
Files 89 89
Lines 22440 22436 -4
Branches 5382 5380 -2
==========================================
- Hits 20060 20056 -4
Misses 1635 1635
Partials 745 745
☔ View full report in Codecov by Sentry. |
…o fix_for_#5372 * 'fix_for_#5372' of https://github.com/acchamber/iris: [pre-commit.ci] pre-commit autoupdate (SciTools#5406) Avoid using deprecated ContourSet attributes (SciTools#5405) removed redundant timeattr check and added tests to ensure datetime/c… (SciTools#5396) Include location coordinates in the data variable coordinates attribute (SciTools#5389) Added link to UDUNITS-2 database to convert_units docstrings (SciTools#5388)
🚀 Pull Request
Description
Solving #5175, this removes the restriction against comparing datetime objects, as the only ones Iris should deal with are datetime.datetime, cftime.datetime, and PartialDateTime. Adds various new tests for checking combinations of those act as they should.