[Mne_analysis] issue when computing PSDs with eLORETA

Alexandre Gramfort alexandre.gramfort at inria.fr
Tue Mar 31 07:52:36 EDT 2020
Search archives:

        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



More information about the Mne_analysis mailing list