[Mne_analysis] issue when computing PSDs with eLORETA

Fleur GAUDFERNAU fleur.gaudfernau at pasteur.fr
Tue Mar 31 09:26:52 EDT 2020
Search archives:

        External Email - Use Caution        

Hello,

Here is the issue:

https://github.com/mne-tools/mne-python/issues/7540

[https://avatars2.githubusercontent.com/u/583875?s=400&v=4]<https://github.com/mne-tools/mne-python/issues/7540>

Error when computing PSDs with eLORETA · Issue #7540 · mne-tools/mne-python · GitHub<https://github.com/mne-tools/mne-python/issues/7540>
github.com
Describe the bug When trying to compute psd over epochs using eLORETA method, the noise_norm matrix used to compute the psd is set to None, hence generating an error. Steps to reproduce import matplotlib.pyplot as plt import mne from mne...


Fleur

________________________________
De : mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> de la part de Alexandre Gramfort <alexandre.gramfort at inria.fr>
Envoyé : mardi 31 mars 2020 12:52:36
À : Discussion and support forum for the users of MNE Software
Objet : Re: [Mne_analysis] issue when computing PSDs with eLORETA

        External Email - Use Caution

Hi Fleur,

this is likely to be a bug.

can you open an issue on github and ideally provide a code snippet
to replicate the pb using sample data?

A

On Tue, Mar 31, 2020 at 1:03 PM Fleur GAUDFERNAU
<fleur.gaudfernau at pasteur.fr> wrote:
>
>         External Email - Use Caution
>
> Dear MNE community,
>
>
> When trying to compute psd over epochs (with mne.minimum_norm.compute_source_psd_epochs) using eLORETA method, I have the following error :
>
> psd *= noise_norm ** 2
> TypeError: unsupported operand type(s) for ** or pow(): 'NoneType' and 'int'
>
> Coming from that line:
>
> https://github.com/mne-tools/mne-python/blob/361fa5fde83c192f705b9a0dd792858237c4b0b1/mne/minimum_norm/time_frequency.py#L676
>
>
> I believe this is because noise_norm is set to None for MNE and eLORETA methods in:
> https://github.com/mne-tools/mne-python/blob/1639ab47dd41a73e9e95962e766c80c102cc70f1/mne/minimum_norm/inverse.py#L673
> Does anyone has the same issue?
> Thanks in advance.
> Fleur
> _______________________________________________
> Mne_analysis mailing list
> 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/20200331/ef7add66/attachment.html 


More information about the Mne_analysis mailing list