External Email - Use Caution
I opened an MNE issue for the downsampling problem (https://github.com/mne-tools/mne-python/issues/6127)
When I set the ico=None, I run into a new issue with mne.make_bem_solution after mne.make_bem_model. I don't get this issue with the MNE sample dataset but with my acquired T1's. Any ideas? Thanks for your help guys.
bem = mne.make_bem_solution(surfaces, verbose='INFO')
Approximation method : Linear collocation
Three-layer model surfaces loaded.
Computing the linear collocation solution...
Matrix coefficients...
head (5002) -> head (5002) ...
/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py:151: RuntimeWarning: divide by zero encountered in double_scalars
miss /= (4.0 * n_memb)
head (5002) -> outer_skull (5002) ...
head (5002) -> inner_skull (5002) ...
outer_skull (5002) -> head (5002) ...
outer_skull (5002) -> outer_skull (5002) ...
outer_skull (5002) -> inner_skull (5002) ...
inner_skull (5002) -> head (5002) ...
inner_skull (5002) -> outer_skull (5002) ...
inner_skull (5002) -> inner_skull (5002) ...
Inverting the coefficient matrix...
Traceback (most recent call last):
File "<ipython-input-18-24943e2f3a65>", line 1, in <module>
bem = mne.make_bem_solution(surfaces, verbose='INFO')
File "</dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/externals/decorator.py:decorator-gen-39>", line 2, in make_bem_solution
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils/_logging.py", line 88, in wrapper
return function(*args, **kwargs)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 326, in make_bem_solution
_fwd_bem_linear_collocation_solution(bem)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 267, in _fwd_bem_linear_collocation_solution
m['solution'] = _fwd_bem_multi_solution(coeff, m['gamma'], nps)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/mne/bem.py", line 225, in _fwd_bem_multi_solution
return linalg.inv(solids, overwrite_a=True)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/linalg/basic.py", line 945, in inv
a1 = _asarray_validated(a, check_finite=check_finite)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/_lib/_util.py", line 239, in _asarray_validated
a = toarray(a)
File "/dagher/dagher6/yyau/toolbox/anaconda3/envs/mne/lib/python3.6/site-packages/numpy/lib/function_base.py", line 498, in asarray_chkfinite
"array must not contain infs or NaNs")
ValueError: array must not contain infs or NaNs