Skip to content

Commit e729062

Browse files
committed
cast to int64
fix UserWarning: result dtype changed due to the removal of value-based promotion from NumPy. Changed from int64 to uint8.
1 parent 0ab9d5c commit e729062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,7 @@ def proc_extra_field(
23252325
bpi + 1 : bpi + 1 + int(np.ceil(aux_notelen / 2.0)), :
23262326
].flatten()
23272327
if aux_notelen & 1:
2328-
aux_notebytes = aux_notebytes[:-1]
2328+
aux_notebytes = aux_notebytes[:-1].astype(np.int64)
23292329
# The aux_note string
23302330
aux_note.append("".join([chr(char) for char in aux_notebytes]))
23312331
update["aux_note"] = False

0 commit comments

Comments
 (0)