# mne\_watershed\_bem problems

**URL:** <https://mne.discourse.group/t/mne-watershed-bem-problems/960>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [February 11, 2016, 11:41pm UTC](https://mne.discourse.group/t/mne-watershed-bem-problems/960 "2016-02-11T23:41:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 11, 2016, 11:41pm UTC](https://mne.discourse.group/t/mne-watershed-bem-problems/960/1 "2016-02-11T23:41:21Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160211/759cae4e/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 12, 2016, 8:45pm UTC](https://mne.discourse.group/t/mne-watershed-bem-problems/960/2 "2016-02-12T20:45:21Z")

</div>

hi,

see :

[https://github.com/mne-tools/mne-python/blob/master/mne/commands/mne\_watershed\_bem.py](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
