mne_watershed_bem problems

Dear MNE experts,

I am currently doing mne analysis and came into the problem with
mne_watershed_bem. From this command, three files of inner and outer skull
and outer skin surface were generated, but the outer skull reached outside
of the outer skin surface so I was not able to go on to construct the the
bem model and then the forward solution. Do you know what is the reason
causing this error? And how do I fix this? Besides, I could not find the
source code for mri_watershed command, which has its binary codes in the
MNE package. Where can I find the source file, and how could I edit the
algorithm to make any changes to MNE toolbox?

Thank you very much!

Best,
Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160211/759cae4e/attachment.html

hi,

see :

https://github.com/mne-tools/mne-python/blob/master/mne/commands/mne_watershed_bem.py

it's the code we use that is based on freesurfer commands.

HTH
Alex