[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.

pooja prabhu prabhuppooja at gmail.com
Sat Aug 31 06:05:19 EDT 2019
Search archives:

        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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190831/4221a99f/attachment.html 


More information about the Mne_analysis mailing list