- mne.read_bem_surfaces(fname, patch_stats=False, s_id=None, on_defects='raise', verbose=None)¶
Read the BEM surfaces from a FIF file.
The name of the file containing the surfaces.
- patch_statsbool, optional (default
Calculate and add cortical patch statistics to the surfaces.
If int, only read and return the surface with the given s_id. An error will be raised if it doesn’t exist. If None, all surfaces are read and returned.
What to do if the surface is found to have topological defects. Can be
'raise'(default) to raise an error, or
'warn'to emit a warning. Note that a lot of computations in MNE-Python assume the surfaces to be topologically correct, topological defects may still make other computations (e.g.,
mne.make_bem_solution) fail irrespective of this parameter.
New in version 0.23.