Open
Description
Right now I think the VLenArray
only supports 1-D arrays. What would it take to extend support to 2-D arrays too? I have a list of 2D numpy arrays that I'd like to save as a zarr file using something like
zarr.array( 'foo', foo, dtype='array:f8')
where foo
is my list of 2D numpy arrays (they are all NxD where D is fixed across the list but N is variable), but I currently get an error message that ends with
File "numcodecs/vlen.pyx", line 382, in numcodecs.vlen.VLenArray.encode
ValueError: only 1-dimensional arrays are supported
If this sounds like a bad idea I can think of workarounds where I reshape flatten the arrays ahead of time and then keep track of that D
number and reshape them on reading, but I thought I'd ask! Thanks!!
Metadata
Metadata
Assignees
Labels
No labels