From f25f92b39c1413941a53ee1d42d03dd89f33825c Mon Sep 17 00:00:00 2001 From: Benjamin Moody Date: Thu, 25 May 2023 13:36:34 -0400 Subject: [PATCH] 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. --- wfdb/processing/hr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfdb/processing/hr.py b/wfdb/processing/hr.py index 6d6502ad..5e6bfc36 100644 --- a/wfdb/processing/hr.py +++ b/wfdb/processing/hr.py @@ -227,7 +227,7 @@ def ann2rr( elif format == "h": out_interval = time_interval / (60 * 60) else: - out_interval = np.around(time_interval * ann.fs).astype(np.int) + out_interval = np.around(time_interval * ann.fs).astype(np.int64) if as_array: return out_interval