Skip to content

Commit

Permalink
Fix bytes fill value
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Jan 1, 2024
1 parent e3ac387 commit 971dfce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hdmf_zarr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ def from_h5py_dataset(h5dataset, **kwargs):
"""
filters = ZarrDataIO.hdf5_to_zarr_filters(h5dataset)
fillvalue = h5dataset.fillvalue if 'fillvalue' not in kwargs else kwargs.pop('fillvalue')
if isinstance(fillvalue, bytes): # bytes are not JSON serializable so use string instead
fillvalue = str(fillvalue)
chunks = h5dataset.chunks if 'chunks' not in kwargs else kwargs.pop('chunks')
re = ZarrDataIO(
data=h5dataset,
Expand Down

0 comments on commit 971dfce

Please sign in to comment.