Skip to content

Commit

Permalink
Minimal change to avoid a numpy deprecation failure. Without this
Browse files Browse the repository at this point in the history
all tests fail at python 3.10 and numpy 1.24.4. With it, they all pass.
  • Loading branch information
Bryan Lawrence committed Feb 22, 2024
1 parent b3bc85b commit e5d85fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfive/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _attr_value(self, dtype, buf, count, offset):
""" Retrieve an HDF5 attribute value from a buffer. """
if isinstance(dtype, tuple):
dtype_class = dtype[0]
value = np.empty(count, dtype=np.object)
value = np.empty(count, dtype=object)
for i in range(count):
if dtype_class == 'VLEN_STRING':
_, _, character_set = dtype
Expand Down

0 comments on commit e5d85fd

Please sign in to comment.