Skip to content

Commit

Permalink
Merge pull request #45 from NeurodataWithoutBorders/allow-unicode-scalar
Browse files Browse the repository at this point in the history
allow unicode scalar
  • Loading branch information
magland authored Apr 16, 2024
2 parents 0edd1bc + 4b3701e commit 47c5da9
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 47c5da9

Please sign in to comment.