[Mne_analysis] Automatic artifact rejection on continuous data

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Thu Jul 28 03:42:36 EDT 2016
Search archives:

> This looks exactly like what I'd need, but I get the error
>
> "Cannot change channel type for channel O2 in projector "Average EEG
> reference""
>
> I tried:
>
> raw.set_channel_types({'O1':'eog'})

O2 is considered EEG channel when constructing the SSP projection for
average referencing.
You cannot change it to EOG unless you flush the SSP vector and create
it again from scratch.

you can do something like this:

raw.info['projs'] = []  # remove all present projs
raw.set_channel_types({'O1':'eog'})
raw.add_proj(make_eeg_average_ref_proj(raw.info, activate=False))

HTH
Alex


More information about the Mne_analysis mailing list