-
-
Notifications
You must be signed in to change notification settings - Fork 329
OverflowError if using NaT as fill_value for mM dtypes #342
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
Comments
What happens if you change |
The key point appears to be In [1]: import numpy as np
In [2]: np.array(int(np.datetime64('nat').view('i8')), dtype='M8[D]')[()]
Out[2]: numpy.datetime64('NaT') |
Have PR ( zarr-developers/numcodecs#127 ) and PR ( #344 ) in the works to fix this issue. Edit: Have verified these fix the case described in the OP. The latter PR includes a round-trip test of |
Thank you for the fix! |
Of course, were you able to give it a try? |
Closing as this should be resolved with PR ( #344 ) and Numcodecs 0.6.2+. Please let us know if you run into any issues. |
Code sample
raises
Analysis
I think the serialization method for mM types does not allow to unserialize properly Not a Time fill values.
Resolution
In
meta.py / encode_fill_value
:The text was updated successfully, but these errors were encountered: