[Mne_analysis] using correlation as method for find_bads_ecg

Lau Møller Andersen lau.andersen at cnru.dk
Wed Oct 15 18:15:39 EDT 2014
Search archives:

Dear list

I can't get the correlation method to work for find_bads_ecg method
It always returns the error: ValueError: ECG003 not in channel list

method = 'correlation'

ekgEpochs = mne.preprocessing.create_ecg_epochs(raw)

ekgIndices, ekgScores = ica.find_bads_ecg(ekgEpochs, method=method)

It is in the ekgEpochs as seen below

ekgEpochs.info['ch_names'][:4]
Out[8]: ['EOG001', 'EOG002', 'ECG003', 'MEG0111']

it makes no difference whether I include ch_name = 'ECG003' in
create_ecg_epochs or in find_bads_ecg

Any thoughts on why this could be?

I'm running MNE 0.8.5 on MacOSX 10.9.5

Best

Lau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141015/0675da48/attachment.html 


More information about the Mne_analysis mailing list