mne.read_evokeds_mff(fname, condition=None, channel_naming='E%d', baseline=None, verbose=None)[source]

Read averaged MFF file as EvokedArray or list of EvokedArray.


File path to averaged MFF file. Should end in .mff.

conditionint or str | list of int or str | None

The index (indices) or category (categories) from which to read in data. Averaged MFF files can contain separate averages for different categories. These can be indexed by the block number or the category name. If condition is a list or None, a list of EvokedArray objects is returned.


Channel naming convention for EEG channels. Defaults to ‘E%d’ (resulting in channel names ‘E1’, ‘E2’, ‘E3’…).

baselineNone (default) or tuple of length 2

The time interval to apply baseline correction. If None do not apply it. If baseline is (a, b) the interval is between “a (s)” and “b (s)”. If a is None the beginning of the data is used and if b is None then b is set to the end of the interval. If baseline is equal to (None, None) all the time interval is used. Correction is applied by computing mean of the baseline period and subtracting it from the data. The baseline (a, b) includes both endpoints, i.e. all timepoints t such that a <= t <= b.

verbosebool, str, int, or 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.

evokedEvokedArray or list of EvokedArray

The evoked dataset(s); one EvokedArray if condition is int or str, or list of EvokedArray if condition is None or list.


If fname has file extension other than ‘.mff’.


If the MFF file specified by fname is not averaged.


If no categories.xml file in MFF directory specified by fname.


New in version 0.22.

Examples using mne.read_evokeds_mff