[Bug]: Converting HDF5 to Zarr with unlimted dimensions fails #154
Labels
category: bug
errors in the code or code behavior
priority: high
impacts proper operation or use of feature important to most users
Milestone
What happened?
When converting an HDF5 dataset to Zarr where the HDF5 dataset has an unlimited dimension, the
data_shape
will includeNone
values for the unlimited dimensions whenget_data_shape
is being called"hdmf-zarr/src/hdmf_zarr/backend.py
Lines 1195 to 1196 in 71bfa6d
This is because
hdmf.utils.get_data_shape
looks at themaxshape
of the data first rather than returning the actual shape https://github.com/hdmf-dev/hdmf/blob/8892ba6472d9751ff44b977a1d5a50e6512d3b05/src/hdmf/utils.py#L902-L903However, the data shape when creating a new dataset in Zarr cannot contain None values, i.e., it must be a tuple of only integer values.
Steps to Reproduce
Traceback
Operating System
Linux
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: