File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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. 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>`.
113+ # for further analysis.
114+ #
115+ # .. admonition:: Repairing and retaining epochs with artifacts
116+ #
117+ # In this case, the large frontal deflections are likely blink artifacts, so
118+ # dropping is not the only option. For artifacts like these, it can be
119+ # preferable to repair the data and keep more epochs, for example with
120+ # :ref:`ICA <tut-artifact-ica>` or
121+ # :ref:`regression-based artifact correction <tut-artifact-regression>`.
118122epochs .drop (np .where (scores >= 0.6 )[0 ])
119123print (f"Epochs remaining after dropping scores ≥ 0.6: { len (epochs )} " )
120124
You can’t perform that action at this time.
0 commit comments