[FieldTrip] Read mne-python epochs file in fieldtrip

Laetitia Grabot laetitia.grabot at gmail.com
Wed Jan 7 09:57:28 CET 2015


Dear all,
I would like to read in fieldtrip a epoch file (.fif) created in
mne-python. As adviced in the website section "integrate fieldtrip and
MNE-Python", I used the following piece of code:



*cfg = [];cfg.dataset = filename;data1 = ft_preprocessing(cfg);*

And I get the following error:













*Error using fiff_setup_read_raw (line 89)No raw data
in/neurospin/meg/meg_tmp/PhaseTime_Anne_2013/epochs/jm100042_equalizedEpochs_allCond_firstStimLocked_filtr45Hz_Afirst.fifError
in fiff_setup_read_raw (line 89)            error(me,'No raw data in
%s',fname);Error in ft_read_header (line 1157)        raw =
fiff_setup_read_raw(filename);Error in ft_preprocessing (line 338)  hdr =
ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);*
It seems that there is a problem at the level of the header of the file.
Any help would be appreciated if someone already solved this issue. By the
way, this piece of code works well to read an evoked file without error.

Thanks a lot,
Best,
Laetitia G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150107/fde365a1/attachment-0001.html>


More information about the fieldtrip mailing list