mne.channels.find_layout

mne.channels.find_layout(info, ch_type=None, exclude='bads')[source]

Choose a layout based on the channels in the info ‘chs’ field.

Parameters
infoinstance of Info

The measurement info.

ch_type{‘mag’, ‘grad’, ‘meg’, ‘eeg’} | None

The channel type for selecting single channel layouts. Defaults to None. Note, this argument will only be considered for VectorView type layout. Use 'meg' to force using the full layout in situations where the info does only contain one sensor type.

excludelist of str | str

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

Returns
layoutLayout instance | None

None if layout not found.