- mne.make_forward_solution(info, trans, src, bem, meg=True, eeg=True, *, mindist=0.0, ignore_ref=False, n_jobs=None, verbose=None)#
Calculate a forward solution for a subject.
- transpath-like |
dict| instance of
If str, the path to the head<->MRI transform
*-trans.fiffile produced during coregistration. Can also be
'fsaverage'to use the built-in fsaverage transformation. If trans is None, an identity matrix is assumed.
Changed in version 0.19: Support for ‘fsaverage’ argument.
- srcpath-like | instance of
If string, should be a source space filename. Can also be an instance of loaded or generated SourceSpaces.
- bempath-like |
Filename of the BEM (e.g., “sample-5120-5120-5120-bem-sol.fif”) to use, or a loaded sphere model (dict).
If True (Default), include MEG computations.
If True (Default), include EEG computations.
Minimum distance of sources from inner skull surface (in mm).
If True, do not include reference channels in compensation. This option should be True for KIT files, since forward computation with reference channels is not currently supported.
The number of jobs to run in parallel. If
-1, it is set to the number of CPU cores. Requires the
None(default) is a marker for ‘unset’ that will be interpreted as
n_jobs=1(sequential execution) unless the call is performed under a
joblib.parallel_backend()context manager that sets another value for
- fwdinstance of
The forward solution.
- fwdinstance of
--gradoption from MNE-C (to compute gradients) is not implemented here.
To create a fixed-orientation forward solution, use this function followed by
Changed in version 1.2: Added support for OpenMEEG-based forward solution calculations.