Sensors outside the BEM layer "Scalp"

Hi Francois,

I am using the ICBM152 template, and after computing the BEM surfaces, tried computing the head model with OpenMEEG BEM. However, I am running into the following error:

WARNING: 37 sensor(s) outside the BEM layer "Scalp" (see list in command window).
The leadfield for these sensors could be incorrect, or OpenMEEG could crash.
Edit the channel file and change their type to exclude them.

This is an older scripted pipeline which worked before, so I am not sure as to why I am getting this error. Any help would be greatly appreciated.

Best,
Paul

This check was meant to be used only for SEEG, not for EEG, sorry.
I fixed it: https://github.com/brainstorm-tools/brainstorm3/commit/411ed7eb61781b211977a97aba3fd434d3a033f5