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
subjectstr

Subject to process.

spacingstr

The spacing to use. Can be 'ico#' for a recursively subdivided icosahedron, 'oct#' for a recursively subdivided octahedron, 'all' for all points, or an integer to use appoximate distance-based spacing (in mm).

Changed in version 0.18: Support for integers for distance-based spacing.

surfacestr

The surface to use.

subjects_dirstr, or None

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

add_distbool

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

n_jobsint

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

verbosebool, str, int, or None

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

Returns
srcSourceSpaces

The source space for each hemisphere.