Skip to content

Commit

Permalink
FIX for notch_filter with annotations (#11423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak authored Jan 18, 2023
1 parent 0e607f3 commit 61f83a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def notch_filter(self, freqs, picks=None, filter_length='auto',
logger.info('Filtering raw data in %d contiguous segment%s'
% (len(onsets), _pl(onsets)))
for si, (start, stop) in enumerate(zip(onsets, ends)):
self._data = notch_filter(
notch_filter(
self._data[:, start:stop], fs, freqs,
filter_length=filter_length, notch_widths=notch_widths,
trans_bandwidth=trans_bandwidth, method=method,
Expand Down

0 comments on commit 61f83a9

Please sign in to comment.