Skip to content

Commit

Permalink
possible fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed May 22, 2024
1 parent e793785 commit 26afd08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def write_dataset(self, **kwargs): # noqa: C901
self._written_builders.set_written(builder) # record that the builder has been written
dset.attrs['zarr_dtype'] = type_str
if hasattr(refs, '__len__'):
dset[:] = refs
dset[:] = np.array(refs)
else:
dset[0] = refs
# write a 'regular' dataset without DatasetIO info
Expand Down Expand Up @@ -1453,7 +1453,6 @@ def __read_dataset(self, zarr_obj, name):
# Read scalar dataset
if dtype == 'scalar':
data = zarr_obj[()]

if isinstance(dtype, list):
# Check compound dataset where one of the subsets contains references
has_reference = False
Expand Down

0 comments on commit 26afd08

Please sign in to comment.