This documentation is for development version 0.18.dev0.

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:
info : instance of Info | None

Measurement info (e.g., raw.info). If None, default names will be employed.

picks : str | list | 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_col : int | None

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

Returns:
layout : Layout

The generated layout.