mne.scale_source_space

mne.scale_source_space(subject_to, src_name, subject_from=None, scale=None, subjects_dir=None, n_jobs=1, verbose=None)[source]

Scale a source space for an mri created with scale_mri().

Parameters
subject_tostr

Name of the scaled MRI subject (the destination mri subject).

src_namestr

Source space name. Can be a spacing parameter (e.g., '7', 'ico4', 'oct6') or a file name of a source space file relative to the bem directory; if the file name contains the subject name, it should be indicated as “{subject}” in src_name (e.g., "{subject}-my_source_space-src.fif").

subject_fromNone | str

The subject from which to read the source space. If None, subject_from is read from subject_to’s config file.

scaleNone | float | array, shape = (3,)

Scaling factor. Has to be specified if subjects_from is specified, otherwise it is read from subject_to’s config file.

subjects_dirNone | str

Override the SUBJECTS_DIR environment variable.

n_jobsint

Number of jobs to run in parallel if recomputing distances (only applies if scale is an array of length 3, and will not use more cores than there are source spaces).

verbosebool, str, int, or None

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.

Notes

When scaling volume source spaces, the source (vertex) locations are scaled, but the reference to the MRI volume is left unchanged. Transforms are updated so that source estimates can be plotted on the original MRI volume.