Skip to content

Commit fc9078a

Browse files
FIX, DOC: Drop bad channel in 10_publication_figure.py (#13266)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9e5a929 commit fc9078a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/visualization/10_publication_figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
fname_evoked = data_path / "MEG" / "sample" / "sample_audvis-ave.fif"
4242

4343
evoked = mne.read_evokeds(fname_evoked, "Left Auditory")
44-
evoked.pick(picks="grad").apply_baseline((None, 0.0))
44+
evoked.pick(picks="grad", exclude="bads").apply_baseline((None, 0.0))
4545
max_t = evoked.get_peak()[1]
4646

4747
stc = mne.read_source_estimate(fname_stc)

0 commit comments

Comments
 (0)