mne.create_info(ch_names, sfreq, ch_types=None, montage=None)

Create a basic Info instance suitable for use with create_raw


ch_names : list of str | int

Channel names. If an int, a list of channel names will be created from range(ch_names)

sfreq : float

Sample rate of the data.

ch_types : list of str | str

Channel types. If None, data are assumed to be misc. Currently supported fields are “mag”, “grad”, “eeg”, and “misc”. If str, then all channels are assumed to be of the same type.

montage : None | str | Montage | DigMontage | list

A montage containing channel positions. If str or Montage is specified, the channel info will be updated with the channel positions. Default is None. If DigMontage is specified, the digitizer information will be updated. A list of unique montages, can be specifed and applied to the info. See also the documentation of mne.channels.read_montage() for more information.


The info dictionary will be sparsely populated to enable functionality within the rest of the package. Advanced functionality such as source localization can only be obtained through substantial, proper modifications of the info structure (not recommended).

Note that the MEG device-to-head transform info['dev_head_t'] will be initialized to the identity transform.