From 4b3701e3f9bbe0f44584775797df8d74c2cc59c7 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Fri, 12 Apr 2024 14:09:19 -0400 Subject: [PATCH] allow unicode scalar --- lindi/conversion/create_zarr_dataset_from_h5_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lindi/conversion/create_zarr_dataset_from_h5_data.py b/lindi/conversion/create_zarr_dataset_from_h5_data.py index 0e36127..007df86 100644 --- a/lindi/conversion/create_zarr_dataset_from_h5_data.py +++ b/lindi/conversion/create_zarr_dataset_from_h5_data.py @@ -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}')