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

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 version 0.18.

Returns
fwd_outinstance of Forward

Restricted forward operator.