Hi!
I'm want to perform a dipole fit of my simulated (MEG) data, but applying
mne.dipole_fit throws the error "TypeError: '<' not supported between
instances of 'NoneType' and 'int'". Is there any way to circumvent this?
Here it is:
</home/karin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/externals/decorator.py:decorator-gen-298>
in fit_dipole(evoked, cov, bem, trans, min_dist, n_jobs, pos, ori, verbose)
~/anaconda3/envs/mne/lib/python3.6/site-packages/mne/dipole.py in
fit_dipole(evoked, cov, bem, trans, min_dist, n_jobs, pos, ori, verbose)
1073 raise ValueError('EEG average reference is mandatory for
dipole '
1074 'fitting.')
-> 1075 if min_dist < 0:
1076 raise ValueError('min_dist should be positive. Got %s' %
min_dist)
1077 if ori is not None and pos is None:
TypeError: '<' not supported between instances of 'str' and 'int'
Did you pass `min_dist=None`? It needs to be a float. The default (5.)
should be reasonable in most cases, though it can be closer to zero if you
want (eventually there might be numerical problems if you set it too close
to zero).