Skip to content

Commit 32f2b4e

Browse files
committed
DOC: Add artifact-cleaning note to epoch quality example.
1 parent bd6f9cc commit 32f2b4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/preprocessing/plot_epoch_quality.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@
110110
# Following visual inspection, bad epochs can be discarded using the
111111
# :meth:`mne.Epochs.drop` method. Here, we remove the worst scoring epochs (≥ 0.6)
112112
# which contained strong artifact activity. The remaining good epochs can then be used
113-
# for further analysis.
113+
# for further analysis. In this case, the large frontal deflections are likely blink
114+
# artifacts, so dropping is not the only option. For artifacts like these, it can be
115+
# preferable to repair the data and keep more epochs, for example with
116+
# :ref:`ICA <tut-artifact-ica>` or
117+
# :ref:`regression-based artifact correction <tut-artifact-regression>`.
114118
epochs.drop(np.where(scores >= 0.6)[0])
115119
print(f"Epochs remaining after dropping scores ≥ 0.6: {len(epochs)}")
116120

0 commit comments

Comments
 (0)