Fixing inner/outer skull surfaces

  • MNE version:1.3.1
  • operating system: Linux RedHat7

Hello,

I am having some trouble with getting my inner skull surface to fit within my outer skull surface. The error comes when I run this line of code:

model = mne.make_bem_model(subject = str(subjid), ico=4, conductivity = (0.3, 0.006, 0.3))

Just before I get this error, I am able to run the following:

mne.bem.make_scalp_surfaces(subject = str(subjid), subjects_dir=subjects_dir, force=True, overwrite=True)
mne.bem.make_watershed_bem(subject = str(subjid), subjects_dir=subjects_dir, overwrite=True)

I tried using a script to fix defects from this GitHub post, but I ran into issues there with degenerated faces not getting fixed by their code, which threw an error when it then tried to assert that there were no degenerated surfaces.

Any help would be appreciated!