From 39cd94b63075c32de24b08df1a3298ee97baaa01 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Thu, 4 Jul 2024 13:31:31 +0200 Subject: [PATCH] Remove the .astype call in rdann, as a numpy upper bound is sufficient for now (see MIT-LCP/wfdb-python#493). --- wfdb/io/annotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wfdb/io/annotation.py b/wfdb/io/annotation.py index 5a8ea75d..ae86cc9f 100644 --- a/wfdb/io/annotation.py +++ b/wfdb/io/annotation.py @@ -1949,9 +1949,9 @@ def rdann( # Read the file in byte pairs if ann_stream is not None: - filebytes = np.frombuffer(ann_stream.read(), "