Skip to content

Commit

Permalink
Supports empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jan 26, 2024
1 parent 8dc0a45 commit 94d9fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/silx/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,10 @@ def h5py_value_isinstance(value, vtype):
except AttributeError:
pass
else:
value = value[0]
try:
value = value[0]
except IndexError:
pass
return isinstance(value, vtype)


Expand Down

0 comments on commit 94d9fc7

Please sign in to comment.