mne.forward.restrict_forward_to_stc

mne.forward.restrict_forward_to_stc(fwd, stc, on_missing='ignore')[source]

Restrict forward operator to active sources in a source estimate.

Parameters
fwdinstance of Forward

Forward operator.

stcinstance of SourceEstimate

Source estimate.

on_missingstr

Behavior when stc has vertices that are not in fwd. Can be “ignore”, “warn””, or “raise”. Default is “ignore”.

New in version 0.18.

Returns
fwd_outinstance of Forward

Restricted forward operator.