mne.setup_source_space

mne.setup_source_space(subject, spacing='oct6', surface='white', 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.

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.

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 : SourceSpaces

The source space for each hemisphere.