mne.read_epochs_fieldtrip#
- mne.read_epochs_fieldtrip(fname, info, data_name='data', trialinfo_column=0) EpochsArray [source]#
Load epoched data from a FieldTrip preprocessing structure.
This function expects to find epoched data in the structure data_name is pointing at.
Warning
Only epochs with the same amount of channels and samples are supported!
Warning
FieldTrip does not normally store the original information concerning channel location, orientation, type etc. It is therefore highly recommended to provide the info field. This can be obtained by reading the original raw data file with MNE functions (without preload). The returned object contains the necessary info field.
- Parameters:
- fnamepath-like
Path and filename of the
.mat
file containing the data.- info
dict
orNone
The info dict of the raw data file corresponding to the data to import. If this is set to None, limited information is extracted from the FieldTrip structure.
- data_name
str
Name of heading dict/ variable name under which the data was originally saved in MATLAB.
- trialinfo_column
int
Column of the trialinfo matrix to use for the event codes.
- Returns:
- epochsinstance of
EpochsArray
An EpochsArray containing the loaded data.
- epochsinstance of