mne.channels.make_grid_layout#

mne.channels.make_grid_layout(info, picks=None, n_col=None)[source]#

Generate .lout file for custom data, i.e., ICA sources.

Parameters:
infomne.Info

The mne.Info object with information about the sensors and methods of measurement.

picksstr | array_like | slice | None

Channels to include. Slices and lists of integers will be interpreted as channel indices. In lists, channel type strings (e.g., ['meg', 'eeg']) will pick channels of those types, channel name strings (e.g., ['MEG0111', 'MEG2623'] will pick the given channels. Can also be the string values “all” to pick all channels, or “data” to pick data channels. None (default) will pick all good misc channels.

n_colint | None

Number of columns to generate. If None, a square grid will be produced.

Returns:
layoutLayout

The generated layout.