Skip to content

Commit

Permalink
cast to int64
Browse files Browse the repository at this point in the history
fix UserWarning: result dtype changed due to the removal of value-based promotion from NumPy. Changed from int64 to uint8.
  • Loading branch information
tompollard committed Oct 10, 2024
1 parent 0ab9d5c commit e729062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@ def proc_extra_field(
bpi + 1 : bpi + 1 + int(np.ceil(aux_notelen / 2.0)), :
].flatten()
if aux_notelen & 1:
aux_notebytes = aux_notebytes[:-1]
aux_notebytes = aux_notebytes[:-1].astype(np.int64)
# The aux_note string
aux_note.append("".join([chr(char) for char in aux_notebytes]))
update["aux_note"] = False
Expand Down

0 comments on commit e729062

Please sign in to comment.