-
Notifications
You must be signed in to change notification settings - Fork 49
Persist calendar when discarding cftime microsecond #183
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
Persist calendar when discarding cftime microsecond #183
Conversation
Codecov Report
@@ Coverage Diff @@
## v3.0.x #183 +/- ##
=======================================
Coverage 90.63% 90.63%
=======================================
Files 7 7
Lines 833 833
Branches 105 105
=======================================
Hits 755 755
Misses 64 64
Partials 14 14
Continue to review full report at Codecov.
|
| | build | ||
| | dist | ||
| )/ | ||
| | _version.py |
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.
This file is auto-generated by setuptools-scm and should not be linted
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.
Full disclosure: I don't understand this file. But if it's auto-generated and @bjlittle is happy with it then it should be 👍
rcomer
left a comment
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.
Hi @bjlittle I have one comment for your consideration. I've not yet looked at the test module as it seems likely that the outcome of the comment may change the tests.
🚀 Pull Request
Description
This PR addresses issues discovered whilst testing SciTools/iris when attempting to unpin
cftime, whereby the specificcalendarofcftime.datetimeobjects are not persisted whenever thecf_units._discard_microsecondfunction was called.Once this PR is merged, I'd like to cut a
cf-units3.0.1 patch release to support aniris3.0.3 patch release.