-
-
Notifications
You must be signed in to change notification settings - Fork 329
NumPy integers not accepted in chunks
argument to zarr.zeros
#697
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
Related: https://bugs.python.org/issue24313 |
Still an issue with zarr 2.10.2:
|
If you would like to work on a PR, that would be welcome 🙂 My guess is we can just add some logic to coerce NumPy integers to Python integers when receiving chunks (say through a utility function) |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code works with zarr 2.3.2, but not with more-recently-released versions of zarr (tested on zarr 2.4.0 and zarr 2.6.1). It now gives a
TypeError
as a result of attempting to JSON serialize a NumPy integer.With zarr 2.3.2, this creates a new array, as expected. With later versions of zarr, I get the following traceback (here with zarr 2.6.1):
This caused a regression in some other code using zarr: tests started failing after updating zarr.
Please provide the following:
zarr.__version__
: 2.6.1numcodecs.__version__
: 0.7.3NumPy version: 1.20.0 (but I was also able to reproduce with NumPy 1.16.5).
The text was updated successfully, but these errors were encountered: