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.
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?
can you share a code snippet to replicate this problem?
just a few lines of python with the reading of the data covariance, the forward
and the computation of the make_lcmv so we can investigate.
I used your code with the MNE sample data (EEG) as input, however, I could
not recreate the problem, so it seems to be connected to your data ... Or
were you able to recreate the problem with any of the example data sets?
Some ideas: Did you inspect your head model for the case where this happens
in your data? Did you check whether the leadfield is [0., 0., 0.] anywhere?