-
-
Notifications
You must be signed in to change notification settings - Fork 327
Unable to save object arrays #691
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
any solution to this? |
Hi @rocherroche. There was recently a fix (#813 in 2.9.4) What version are you using & are you seeing the identical error? |
I can reproduce the above with 2.12.0 and also with the pickle codec. As noted in another issue, things work if the array is created as part of the specified store; if not and the array is just assigned, or copied into the destination using Are there any known/recommended workarounds? Thank you! |
Hi, I wanted to check back in to see if anyone has any suggestions/workarounds for this problem. I am seeing this happening with other encoder classes, too. |
Do you mean #1090 (comment)? If so, I guess that makes sense. Is that usage not currently possible for you? Can you share your code? |
Issue
I am unable to save variable length arrays to disk. I also cannot save JSON or Pickle object arrays to disk. Simple examples are given below.
Sorry if I missed something obvious in the documents. I cannot find an example of object arrays being saved to disk, so this could be entirely a syntax issue. Thanks for your time.
Example 1:
Example 2:
Problem description
Saving object arrays (as defined in the tutorial) results in the "ValueError: missing object_codec for object array" error.
The error occurs in the following line:
As far as I can tell, the filters and codecs are defined in both cases.
Is it possible to save the arrays defined above to disk?
Version and installation information
zarr.version: 2.4.0
numcodecs.version:0.7.2
python version : Python 3.8.5
OS: linux
both pip and conda installations were tested
The text was updated successfully, but these errors were encountered: