mne.read_evokeds_mff#
- 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.
- Parameters
- fname
str File path to averaged MFF file. Should end in .mff.
- condition
intorstr|listofintorstr|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
conditionis a list or None, a list of EvokedArray objects is returned.- channel_naming
str Channel naming convention for EEG channels. Defaults to ‘E%d’ (resulting in channel names ‘E1’, ‘E2’, ‘E3’…).
- baseline
None(default) ortupleof 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|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.
- fname
- Returns
- evoked
EvokedArrayorlistofEvokedArray The evoked dataset(s); one EvokedArray if condition is int or str, or list of EvokedArray if condition is None or list.
- evoked
- Raises
ValueErrorIf
fnamehas file extension other than ‘.mff’.ValueErrorIf the MFF file specified by
fnameis not averaged.ValueErrorIf no categories.xml file in MFF directory specified by
fname.
See also
Notes
New in version 0.22.