This documentation is for development version 0.18.dev0.

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_to : str

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

src_name : str

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_from : None | str

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

scale : None | 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_dir : None | str

Override the SUBJECTS_DIR environment variable.

n_jobs : int

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).

verbose : bool, str, int, or None

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

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.