Skip to content

Commit

Permalink
Fix class comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Jul 3, 2024
1 parent 694b793 commit c834992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsciio/_hierarchical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c834992

Please sign in to comment.