mne.write_source_spaces

mne.write_source_spaces(fname, src, overwrite=False, verbose=None)[source]

Write source spaces to a file.

Parameters:

fname : str

The name of the file, which should end with -src.fif or -src.fif.gz.

src : SourceSpaces

The source spaces (as returned by read_source_spaces).

overwrite : bool

If True, the destination file (if it exists) will be overwritten. If False (default), an error will be raised if the file exists.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).