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

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


info : instance 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.

exclude : list of string | str

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


layout : Layout instance | None

None if layout not found.