Skip to content

Commit

Permalink
fix numpy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Jul 3, 2023
1 parent e582e9b commit 87ed37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/util/arrayUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def getElementCount(buffer, offset):
count_bytes = bytes(buffer[n:m])

try:
count = int(np.frombuffer(count_bytes, dtype="<i4"))
count = int(np.frombuffer(count_bytes, dtype="<i4")[0])
except TypeError as e:
msg = f"Unexpected error reading count value for varlen element: {e}"
raise TypeError(msg)
Expand Down

0 comments on commit 87ed37a

Please sign in to comment.