-
Notifications
You must be signed in to change notification settings - Fork 89
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
Numpy dtype of Index64 #335
Comments
This is on OS X, I believe it also happens on linux but am not sure. |
It's reproducible on Linux. Also, I noticed this: >>> b.dtype.type
<class 'numpy.longlong'>
>>> b.astype('i8').dtype.type
<class 'numpy.int64'> long-long... |
I believe this is related to pybind/pybind11#1908. |
This is fixed because |
It seems the dtype of numpy arrays converted from awkward Index64 have a dtype roundtrip issue. Consider:
b.dtype.char
isq
, while the platform I am on expectsl
. Numpy handles this gracefully:however awkward1 does not:
It is sufficient to recast (despite the dtype not actually changing other than
char
):The text was updated successfully, but these errors were encountered: