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:
- fnamepath-like
File path to averaged MFF file. Should end in
.mff
.- condition
int
orstr
|list
ofint
orstr
|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
str
Channel naming convention for EEG channels. Defaults to ‘E%d’ (resulting in channel names ‘E1’, ‘E2’, ‘E3’…).
- baseline
None
(default) ortuple
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.
- verbose
bool
|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.
- Returns:
- evoked
EvokedArray
orlist
ofEvokedArray
The evoked dataset(s); one EvokedArray if condition is int or str, or list of EvokedArray if condition is None or list.
- evoked
- Raises:
ValueError
If
fname
has file extension other than ‘.mff’.ValueError
If the MFF file specified by
fname
is not averaged.ValueError
If no categories.xml file in MFF directory specified by
fname
.
See also
Notes
New in version 0.22.