Skip to content

Commit

Permalink
[bugfix]: ensure start and stop args to reader's read method are of t…
Browse files Browse the repository at this point in the history
…ype int
  • Loading branch information
mscaudill committed Aug 30, 2023
1 parent 9233bcc commit 09ee87e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openseize/file_io/edf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 09ee87e

Please sign in to comment.