mne.write_head_bem¶
- mne.write_head_bem(fname, rr, tris, on_defects='raise', overwrite=False, verbose=None)[source]¶
Write a head surface to a fiff file.
- Parameters
- fname
str
Filename to write.
- rr
array
, shape (n_vertices, 3) Coordinate points in the MRI coordinate system.
- tris
ndarray
ofint
, shape (n_tris, 3) Triangulation (each line contains indices for three points which together form a face).
- on_defects
str
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_model
andmne.make_bem_solution
) fail irrespective of this parameter.- overwritebool
If True (default False), overwrite the destination file if it exists.
- verbosebool,
str
,int
, orNone
If not None, override default verbose level (see
mne.verbose()
and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- fname