[Mne_analysis] ValueError: stc not compatible with source space.

Yuki yfujishima1001 at gmail.com
Thu May 2 16:09:32 EDT 2019
Search archives:

        External Email - Use Caution        

Hi Eric,

The problem is nicely solved! Thank you so much.

--
Yuki Fujishima
Kyushu University
Department of Medicine
School of Medicine Class of 2020
On May 2, 2019, 15:53 -0400, Eric Larson <larson.eric.d at gmail.com>, wrote:
> External Email - Use Caution
> Pass fwd['src'] to `extract_label_time_course` instead of your original source space.
>
> Eric
>
>
> > On Thu, May 2, 2019 at 3:49 PM Yuki <yfujishima1001 at gmail.com> wrote:
> > >         External Email - Use Caution
> > > Hi
> > >
> > > How can I overcome this error when running mne.extract_label_time_course?
> > >
> > > ---
> > > ValueError: stc not compatible with source space. stc has 4097 time series but there are 4098 vertices in source space
> > > ---
> > >
> > > It seems to me that the problem originates from mne.make_forward_solution:
> > >
> > >
> > > ---
> > > Source spaces are in head coordinates.
> > > Checking that the sources are inside the bounding surface and at least 5.0 mm away (will take a few...)
> > > [Parallel(n_jobs=12)]: Using backend LokyBackend with 12 concurrent workers.
> > > [Parallel(n_jobs=12)]: Done 4 out of 12 | elapsed: 1.3s remaining: 2.5s
> > > [Parallel(n_jobs=12)]: Done 7 out of 12 | elapsed: 1.3s remaining: 0.9s
> > > [Parallel(n_jobs=12)]: Done 10 out of 12 | elapsed: 1.3s remaining: 0.3s
> > > [Parallel(n_jobs=12)]: Done 12 out of 12 | elapsed: 1.3s finished
> > > 1 source space point omitted because of the 5.0-mm distance limit.
> > > Computing patch statistics...
> > > Patch information added...
> > > [Parallel(n_jobs=12)]: Using backend LokyBackend with 12 concurrent workers.
> > > [Parallel(n_jobs=12)]: Done 4 out of 12 | elapsed: 0.1s remaining: 0.1s
> > > [Parallel(n_jobs=12)]: Done 7 out of 12 | elapsed: 0.1s remaining: 0.0s
> > > [Parallel(n_jobs=12)]: Done 10 out of 12 | elapsed: 0.1s remaining: 0.0s
> > > [Parallel(n_jobs=12)]: Done 12 out of 12 | elapsed: 0.1s finished
> > > 1 source space point omitted because it is outside the inner skull surface.
> > > Computing patch statistics...
> > > Patch information added...
> > > Thank you for waiting.
> > > ---
> > >
> > > So can't extract_label_time_course be executed when the number of grid in SourceEstimate(originally Forward model) does not match the number in SourceSpaces? Is there any way to get around this?
> > > Thanks.
> > >
> > >
> > > Best,
> > > Yuki
> > >
> > > --
> > > Yuki Fujishima
> > > Kyushu University
> > > Department of Medicine
> > > School of Medicine Class of 2020
> > > _______________________________________________
> > > 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/20190502/3495a06d/attachment-0001.html 


More information about the Mne_analysis mailing list