-
Notifications
You must be signed in to change notification settings - Fork 39
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
num2date method not accurate for arrays #143
Comments
cftime computations have an accuracy of about 100 ms. I see in your example errors of O(10) microseconds, which is within the stated error bounds. |
Thanks for the reply. It seems to me that the error for 2009-12-22 00:00:05.18 is 180 milliseconds and not O(10) microseconds? But that is still around the error bounds that you mention. For my purposes I can just round to nearest second:-) |
It is really microseconds - so perhaps that formatting is incorrect. |
pull request #146 fixes the microsecond formatting, and makes sure the num2date calculation work the same for scalars and arrays. |
Need to add your script to the test suite. |
PR #146 merged, closing now |
I would expect the results to be identical and equal to the latter result.
I am running this on Ubuntu 18.04 with Python 3.6.9.
The text was updated successfully, but these errors were encountered: