From c8349929b2ef8127595a3052dd491b8f18842979 Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Wed, 3 Jul 2024 19:45:18 +0100 Subject: [PATCH] Fix class comparison --- rsciio/_hierarchical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsciio/_hierarchical.py b/rsciio/_hierarchical.py index 5bf1e985..843ee3c9 100644 --- a/rsciio/_hierarchical.py +++ b/rsciio/_hierarchical.py @@ -74,7 +74,7 @@ def unflatten_data(data, shape, is_hdf5=False): is_hdf5 and data.dtype is not None and data.dtype.metadata.get("vlen") is not None - and data.dtype.metadata["vlen"].metadata.get("vlen") == str + and issubclass(data.dtype.metadata["vlen"].metadata.get("vlen"), str) ) except (AttributeError, KeyError): # AttributeError in case `dtype.metadata`` is None (most of the time)