mne.pick_types_forward

mne.pick_types_forward(orig, meg=True, eeg=False, ref_meg=True, seeg=False, ecog=False, include=[], exclude=[])[source]

Pick by channel type and names from a forward operator.

Parameters
origdict

A forward solution

megbool or str

If True include all MEG channels. If False include None If string it can be ‘mag’ or ‘grad’ to select only gradiometers or magnetometers.

eegbool

If True include EEG channels

ref_megbool

If True include CTF / 4D reference channels

seegbool

If True include stereotactic EEG channels

ecogbool

If True include electrocorticography channels

includelist of str

List of additional channels to include. If empty do not include any.

excludelist of str | str

List of channels to exclude. If empty do not exclude any (default). If ‘bads’, exclude channels in orig[‘info’][‘bads’].

Returns
resdict

Forward solution restricted to selected channel types.

Examples using mne.pick_types_forward