Skip to content

Commit

Permalink
allow unicode scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Apr 12, 2024
1 parent 96a896b commit 4b3701e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lindi/conversion/create_zarr_dataset_from_h5_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_zarr_dataset_from_h5_data(
return ds
else:
raise Exception(f'Unsupported scalar value type: {type(scalar_value)}')
elif h5_dtype.kind == 'S':
elif h5_dtype.kind == 'S' or h5_dtype.kind == 'U':
# byte string
if h5_data is None:
raise Exception(f'Data must be provided for scalar dataset {label}')
Expand Down

0 comments on commit 4b3701e

Please sign in to comment.