mne.setup_source_space

mne.setup_source_space(subject, fname=True, spacing=’oct6’, surface=’white’, overwrite=False, subjects_dir=None, add_dist=True, n_jobs=1, verbose=None)[source]

Set up bilateral hemisphere surface-based source space with subsampling.

Parameters:

subject : str

Subject to process.

fname : str | None | bool

Filename to use. If True, a default name will be used. If None, the source space will not be saved (only returned). Deprecated parameter. Use mne.write_source_spaces() instead.

spacing : str

The spacing to use. Can be 'ico#' for a recursively subdivided icosahedron, 'oct#' for a recursively subdivided octahedron, or 'all' for all points.

surface : str

The surface to use.

overwrite: bool

If True, overwrite output file (if it exists). Deprecated parameter. Use mne.write_source_spaces() instead.

subjects_dir : string, or None

Path to SUBJECTS_DIR if it is not set in the environment.

add_dist : bool

Add distance and patch information to the source space. This takes some time so precomputing it is recommended.

n_jobs : int

Number of jobs to run in parallel. Will use at most 2 jobs (one for each hemisphere).

verbose : bool, str, int, or None

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

Returns:

src : list

The source space for each hemisphere.