[Mne_analysis] ValueError: The eigenspectrum of the leadfield at this voxel is complex. Consider reducing the rank of the leadfield by using reduce_rank=True.

Eric Larson larson.eric.d at gmail.com
Sat Aug 31 12:29:21 EDT 2019
Search archives:

        External Email - Use Caution        

There might be a voxel at the center of the source space that is nearly
zero in all three directions. Does it help if you pass exclude=10 or so in
the setup_volume_source_space call?

Eric


On Sat, Aug 31, 2019 at 6:06 AM pooja prabhu <prabhuppooja at gmail.com> wrote:

>         External Email - Use Caution
>
> Hai group,
> I encountered the problem while executing the function make_lcmv. The
> error is ,
> ValueError: The eigenspectrum of the leadfield at this voxel is complex.
> Consider reducing the rank of the leadfield by using reduce_rank=True.
>
> As recommended i changed included the parameter reduce_rank=True in the
> function 'make_lcmv', even after that the code gives the same error.
> I am not sure what is the problem.
> This work uses 19 channel EEG signals.
> -------------------------------------
> Snippet of the code:
> src= setup_volume_source_space(subj, pos=5.0,mri=aseg_fname,
> bem=fname_model,mindist=7.0, subjects_dir=subjects_dir)
> fwd = mne.make_forward_solution(info=raw.info, trans=None, src=src,
> bem=fname_bem, mindist=2.0, meg=False, eeg=True, n_jobs=1)
> noise_cov = mne.compute_covariance(epochs, tmin=0, tmax=0.2,
> method='empirical',
>                                    rank=None)
> data_cov = mne.compute_covariance(epochs, tmin=0.2, tmax=epochs.tmax,
>                                   method='empirical', rank='full')
> filters = make_lcmv(info=epochs.info, forward=fwd, data_cov=data_cov,
> reg=0.05,
>                     noise_cov=noise_cov, pick_ori='max-power',
>                     weight_norm='nai',reduce_rank=True)
> ---------------------------------------
> --
> Thank You
> Pooja Prabhu
>
> _______________________________________________
> 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/20190831/07a125d4/attachment.html 


More information about the Mne_analysis mailing list