mne.write_evokeds#
- mne.write_evokeds(fname, evoked, *, on_mismatch='raise', overwrite=False, verbose=None)[source]#
Write an evoked dataset to a file.
- Parameters:
- fnamepath-like
The file name, which should end with
-ave.fifor-ave.fif.gz.- evoked
Evokedinstance, orlistofEvokedinstances 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 v0.24.
- overwritebool
If True (default False), overwrite the destination file if it exists.
New in v1.0.
- verbosebool |
str|int|None Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.New in v0.24.
See also
Notes
Changed in version 0.23: Information on baseline correction will be stored with each individual
Evokedobject, and will be restored when reading the data again viamne.read_evokeds.