Skip to content

Commit f25f92b

Browse files
author
Benjamin Moody
committed
ann2rr: use data type int64 rather than int.
The alias 'np.int' has been removed from recent versions of numpy, and there is no particular reason to want to use it here (as an array data type, 'int' refers to a particular platform-dependent type, which is not at all the same thing as an ordinary Python integer.) Use int64 here for inter-platform consistency and to keep it simple.
1 parent 6003485 commit f25f92b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/processing/hr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def ann2rr(
227227
elif format == "h":
228228
out_interval = time_interval / (60 * 60)
229229
else:
230-
out_interval = np.around(time_interval * ann.fs).astype(np.int)
230+
out_interval = np.around(time_interval * ann.fs).astype(np.int64)
231231

232232
if as_array:
233233
return out_interval

0 commit comments

Comments
 (0)