Skip to content

Commit

Permalink
String datasets presented as object dtype |O
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Oct 28, 2024
1 parent ac0192a commit 71a41ce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/PyMca5/PyMcaGui/io/hdf5/HDF5Widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,14 @@ def children(self):
if hasattr(dataset, "shape"):
if not len(dataset.shape):
# it can still be a string
if hasattr(dataset, "dtype") and safe_str(dataset.dtype).startswith("|S"):
pass
if hasattr(dataset, "dtype"):
if safe_str(dataset.dtype).startswith("|S"):
pass
elif safe_str(dataset.dtype) == "object":
# issue 1059
pass
else:
finalListIsTrue = False
else:
finalListIsTrue = False
if finalListIsTrue and not isinstance(finalList[i][1], str):
Expand Down

0 comments on commit 71a41ce

Please sign in to comment.