[Mne_analysis] set_eeg_reference
Mikołaj Magnuski
mmagnuski at swps.edu.pl
Sat Jul 16 13:56:21 EDT 2016
Hi Tadeusz,
you can take a look at the documentation here
<http://martinos.org/mne/dev/generated/mne.io.set_eeg_reference.html> - it
lists two things being returned:
- rereferenced mne object and
- array of reference data.
If you only want to get the re-referenced object, you can do the following:
epochs = mne.io.set_eeg_reference(epochs, ref_channels=['EEG035','EEG042'])[0]
Notice I’ve dropped copy=True argument - but it’s only because that is the
default value, so you don’t have to specify it.
You could also perform rereference in-place:
mne.io.set_eeg_reference(epochs, ref_channels=['EEG035','EEG042'], copy=False)
2016-07-16 18:52 GMT+02:00 Tadeusz W. Kononowicz <t.w.kononowicz at icloud.com>
:
> Hello,
>
> The following line would return a tuple instead of Epochs class. Can I fix
> it easily?
>
> epochs = mne.io.set_eeg_reference(epochs,
> ref_channels=['EEG035','EEG042'], copy=True)
>
> __version__ = '0.12.0'
>
> Thanks,
>
> Tadeusz
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
--
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160716/b7a040eb/attachment.html
More information about the Mne_analysis
mailing list