[Mne_analysis] dip.gof

Eric Larson larson.eric.d at gmail.com
Mon Jun 22 17:33:55 EDT 2020
Search archives:

        External Email - Use Caution        

The output of `fit_dipole` is a tuple with two elements, the dipole and the
residual (see docs here
<https://mne.tools/dev/generated/mne.fit_dipole.html#mne.fit_dipole>).
Maybe you need to do `dip, ev = fit_dipole(...)` or `dip =
fit_dipole(...)[0]`?

Eric


On Mon, Jun 22, 2020 at 5:24 PM Andrade Rey René <rene.andrade at edu.uah.es>
wrote:

>         External Email - Use Caution
>
> Dear experts:
>
> I am trying to run mne.fit_dipole
>
> but I come across this error
>
> 359 time points fitted
> Traceback (most recent call last):
>   File "Rene.py", line 44, in <module>
>     best_idx = np.argmax(dip.gof)
> AttributeError: 'tuple' object has no attribute 'gof'
>
> I assume there has to be some problem with Dipole class.
>
> Best,
> Andrade.
> _______________________________________________
> 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/20200622/7e3501df/attachment.html 


More information about the Mne_analysis mailing list