[Mne_analysis] stc=apply_inverse set_eeg_reference error

Andrade Rey René rene.andrade at edu.uah.es
Sun Apr 19 05:11:33 EDT 2020
Search archives:

        External Email - Use Caution        

nope

projection is set to False

Sent from my iPhone

On 19 Apr 2020, at 11:02, Alexandre Gramfort <alexandre.gramfort at inria.fr> wrote:



        External Email - Use Caution

Hi,

did you add the reference with projection=True parameter?

Alex


On Sun, Apr 19, 2020 at 12:32 AM Andrade Rey René <rene.andrade at edu.uah.es<mailto:rene.andrade at edu.uah.es>> wrote:

        External Email - Use Caution

Dear experts:
I don’t really know how to get out of this problem.


>>> stc = mne.minimum_norm.apply_inverse(evoked, inverse_operator,lambda2=lambda2,method='MNE')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<decorator-gen-302>", line 21, in apply_inverse
  File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/minimum_norm/inverse.py", line 878, in apply_inverse
    method_params, return_residual, use_cps)
  File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/minimum_norm/inverse.py", line 885, in _apply_inverse
    _check_reference(evoked, inverse_operator['info']['ch_names'])
  File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/minimum_norm/inverse.py", line 769, in _check_reference
    raise ValueError('EEG average reference is mandatory for inverse '
ValueError: EEG average reference is mandatory for inverse modeling, use set_eeg_reference method.


I have tried egg reference method and it works bu then I go back to stc… and it doesn’t work.


Sincerely,
Andrade.
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200419/eff41ea2/attachment.html 


More information about the Mne_analysis mailing list