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

Restrict forward operator to active sources in a source estimate.

fwdinstance of Forward

Forward operator.

stcinstance of SourceEstimate

Source estimate.

on_missing‘raise’ | ‘warn’ | ‘ignore’

Can be 'raise' (default) to raise an error, 'warn' to emit a warning, or 'ignore' to ignore when stc has vertices that are not in fwd. Default is “ignore”.

New in v0.18.

fwd_outinstance of Forward

Restricted forward operator.