Skip to content

Commit

Permalink
FIX: args
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 23, 2024
1 parent 93673a0 commit f1d5d76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mne/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f1d5d76

Please sign in to comment.