Closed scott-huberty closed 1 year ago
The trick seems to be to do a pick_types(eeg=True)
here:
Which blows my mind a little.. I'd assume that by default MNE wouldn't let a non-data channel (i.e. STIM channel) be a reference!
Which blows my mind a little.. I'd assume that by default MNE wouldn't let a non-data channel (i.e. STIM channel) be a reference!
I think it probably does use only EEG channels by default but that it assumes that we know what we are doing so if we give it explicitly a list of channels, it uses that list without doing further exclusion... and I suspect that we were explicitly passing this stim channel to the rereferencing function:
inst.set_eeg_reference(ref_channels=[ch for ch in inst.ch_names
if ch not in self['manual']],
**kwargs)
I assume this is only relevant to my development branch where we moved
flag_outlier_chs
intorereference
(but I can confirm when I switch to the main branch.BEFORE running the pipeline:
Looks good.
AFTER running
flag_ch_sd_ch
(the first step of the pipeline. The recording is re-referenced 2 times by the end of this step FYI...)the signals are not legible.