From f1d5d76edb8df05feb2b2b99e2cf3ece7173e07c Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 22 Jan 2024 19:32:49 -0500 Subject: [PATCH] FIX: args --- mne/annotations.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mne/annotations.py b/mne/annotations.py index cc4209bf898..f0f88783b68 100644 --- a/mne/annotations.py +++ b/mne/annotations.py @@ -1616,9 +1616,7 @@ def events_from_annotations( inds = values = np.array([]).astype(int) for annot in annotations[event_sel]: annot_offset = annot["onset"] + annot["duration"] - _onsets = np.arange( - start=annot["onset"], stop=annot_offset, step=chunk_duration - ) + _onsets = np.arange(annot["onset"], annot_offset, chunk_duration) good_events = annot_offset - _onsets >= chunk_duration if good_events.any(): _onsets = _onsets[good_events]