From 09ee87e044c7272754e33636dc2f14932145c903 Mon Sep 17 00:00:00 2001 From: mscaudill Date: Wed, 30 Aug 2023 13:28:10 -0500 Subject: [PATCH] [bugfix]: ensure start and stop args to reader's read method are of type int --- src/openseize/file_io/edf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openseize/file_io/edf.py b/src/openseize/file_io/edf.py index f8d4c40..d2b307f 100644 --- a/src/openseize/file_io/edf.py +++ b/src/openseize/file_io/edf.py @@ -579,7 +579,8 @@ def read(self, if not stop: stop = max(self.header.samples) - + + start, stop = int(start), int(stop) arr = self._read_array(start, stop, self.channels, padvalue) # use cast to indicate ndarray type for docs return cast(np.ndarray, arr)