mne.write_evokeds(fname, evoked, *, on_mismatch='raise', verbose=None)[source]

Write an evoked dataset to a file.


The file name, which should end with -ave.fif or -ave.fif.gz.

evokedEvoked instance, or list of Evoked instances

The evoked dataset, or list of evoked datasets, to save in one file. Note that the measurement info from the first evoked instance is used, so be sure that information matches.

on_mismatch‘raise’ | ‘warn’ | ‘ignore’

Can be 'raise' (default) to raise an error, 'warn' to emit a warning, or 'ignore' to ignore when the device-to-head transformation differs between instances.

New in version 0.24.

verbosebool | str | int | None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

New in version 0.24.

See also



Changed in version 0.23: Information on baseline correction will be stored with each individual Evoked object, and will be restored when reading the data again via mne.read_evokeds.

Examples using mne.write_evokeds