mne.pick_info

mne.pick_info(info, sel=(), copy=True, verbose=None)[source]

Restrict an info structure to a selection of channels.

Parameters
infodict

Info structure from evoked or raw data.

sellist of int | None

Indices of channels to include. If None, all channels are included.

copybool

If copy is False, info is modified inplace.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

Returns
resdict

Info structure restricted to a selection of channels.