MCPcopy
hub / github.com/mne-tools/mne-python / make_forward_solution

Function make_forward_solution

mne/forward/_make_forward.py:617–764  ·  view source on GitHub ↗

Calculate a forward solution for a subject. Parameters ---------- %(info_str)s %(trans)s .. versionchanged:: 0.19 Support for ``'fsaverage'`` argument. src : path-like | instance of SourceSpaces Either a path to a source space file or a loaded or gen

(
    info,
    trans,
    src,
    bem,
    meg=True,
    eeg=True,
    *,
    mindist=0.0,
    ignore_ref=False,
    n_jobs=None,
    on_inside="raise",
    verbose=None,
)

Source from the content-addressed store, hash-verified

615
616@verbose
617def make_forward_solution(
618 info,
619 trans,
620 src,
621 bem,
622 meg=True,
623 eeg=True,
624 *,
625 mindist=0.0,
626 ignore_ref=False,
627 n_jobs=None,
628 on_inside="raise",
629 verbose=None,
630):
631 """Calculate a forward solution for a subject.
632
633 Parameters
634 ----------
635 %(info_str)s
636 %(trans)s
637
638 .. versionchanged:: 0.19
639 Support for ``'fsaverage'`` argument.
640 src : path-like | instance of SourceSpaces
641 Either a path to a source space file or a loaded or generated
642 :class:`~mne.SourceSpaces`.
643 bem : path-like | ConductorModel
644 Filename of the BEM (e.g., ``"sample-5120-5120-5120-bem-sol.fif"``) to
645 use, or a loaded :class:`~mne.bem.ConductorModel`. See
646 :func:`~mne.make_bem_model` and :func:`~mne.make_bem_solution` to create a
647 :class:`mne.bem.ConductorModel`.
648 meg : bool
649 If True (default), include MEG computations.
650 eeg : bool
651 If True (default), include EEG computations.
652 mindist : float
653 Minimum distance of sources from inner skull surface (in mm).
654 ignore_ref : bool
655 If True, do not include reference channels in compensation. This
656 option should be True for KIT files, since forward computation
657 with reference channels is not currently supported.
658 %(n_jobs)s
659 on_inside : 'raise' | 'warn' | 'ignore'
660 What to do if MEG sensors are inside the outer skin surface. If 'raise'
661 (default), an error is raised. If 'warn' or 'ignore', the forward
662 solution is computed anyway and a warning is or isn't emitted,
663 respectively.
664
665 .. versionadded:: 1.10
666 %(verbose)s
667
668 Returns
669 -------
670 fwd : instance of Forward
671 The forward solution.
672
673 See Also
674 --------

Calls 12

_get_transFunction · 0.85
_validate_typeFunction · 0.85
_check_fnameFunction · 0.85
read_infoFunction · 0.85
_coord_frame_nameFunction · 0.85
_prepare_for_forwardFunction · 0.85
_compute_forwardsFunction · 0.85
_to_forward_dictFunction · 0.85
_merge_fwdsFunction · 0.85
splitMethod · 0.80
infoMethod · 0.80
updateMethod · 0.45