[Mne_analysis] problem in _check_reference // inverse module

pascarel at dima.unige.it pascarel at dima.unige.it
Thu Dec 21 10:41:58 EST 2017
Search archives:

CIao Alex,

my question is...why do I have to set the reference if I have
only MEG data?

It seems that the problem is that the ECG, and EOG channels are considered
as EEG ones and thus is required an usefulness average reference.
Indeed if I set

raw.set_eeg_reference('average')

I get this error

*** ValueError: Custom EEG reference is not allowed for inverse modeling.***


Here the raw.info

<Info | 23 non-empty fields
     bads : list | 0 items
     buffer_size_sec : float64 | 1.0
     ch_names : list | SCLK01-177, BG1-4408, BG2-4408, BG3-4408, BP1-4408, ...
     chs : list | 300 items (MISC: 1, REF_MEG: 26, MAG: 270, EEG: 3)
     comps : list | 5 items
     ctf_head_t : Transform | 3 items
     custom_ref_applied : bool | False
     dev_ctf_t : Transform | 3 items
     dev_head_t : Transform | 3 items
     dig : list | 186 items
     events : list | 0 items
     file_id : dict | 4 items
     highpass : float | 0.0 Hz
     hpi_meas : list | 0 items
     hpi_results : list | 1 items
     lowpass : float | 400.0 Hz
     meas_date : ndarray | 2017-12-15 14:22:01 GMT
     meas_id : dict | 4 items
     nchan : int | 300
     proc_history : list | 0 items
     projs : list | 0 items
     sfreq : float | 800.0 Hz
     subject_info : dict | 1 items
     acq_pars : NoneType
     acq_stim : NoneType
     description : NoneType
     experimenter : NoneType
     gantry_angle : NoneType
     hpi_subsystem : NoneType
     kit_system_id : NoneType
     line_freq : NoneType
     proj_id : NoneType
     proj_name : NoneType
     xplotter_layout : NoneType
>

Best,
Annalisa


Alexandre Gramfort <alexandre.gramfort at inria.fr> ha scritto:

> can you show me what
>
> raw.info
>
> prints for you? did you set channel types properly?
>
> what you need is to set channel types properly and then use
>
> raw.set_eeg_reference('average', projection=True)
>
> see:
>
> https://martinos.org/mne/stable/auto_examples/preprocessing/plot_rereference_eeg.html
>
> HTH
> Alex
> _______________________________________________
> 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.


-- 
Dott. Annalisa Pascarella
Istituto per le Applicazioni del Calcolo "M. Picone"
Consiglio Nazionale delle Ricerche
Via dei Taurini 19, 00185 Roma (Italy)
Ph.:+39-0649270946; Fax:+39-064404306



More information about the Mne_analysis mailing list