[FieldTrip] Error while reading in Fieldtrip an epochs file created with mne-python

Robert Oostenveld r.oostenveld at donders.ru.nl
Thu May 31 10:03:20 CEST 2018

Hi Laetitia

The code you are referring to is fiff_read_epochs, which is in fieldtrip/external/mne. The external toolboxes are not maintained by the FieldTrip developpers themselves, only included for convenience. Please contact the maintaners at https://github.com/mne-tools/mne-matlab <https://github.com/mne-tools/mne-matlab>

best regards,

> On 23 May 2018, at 13:42, Laetitia Grabot <laetitia.grabot at gmail.com> wrote:
> Dear all,
> I'm trying to read in Fieldtrip an Elekta Neuromag epochs file (.fif) created with mne-python (MEG and EEG data file). I used the following snippet of code, and got the following error:
> cfg = [];
> cfg.dataset = filename;
> data = ft_preprocessing(cfg);
> Error using fiff_read_epochs (line 47)
> Could not find epochs data
> Error in fiff_read_epochs (line 47)
>     error(me,'Could not find epochs data');
> Error in ft_read_header (line 1846)
>         epochs = fiff_read_epochs(filename);
> Error in ft_read_header (line 125)
>     hdr{i} = ft_read_header(filename{i}, varargin{:});
> Error in ft_preprocessing (line 397)
>   hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat,...
> I saw that a former thread <https://mailman.science.ru.nl/pipermail/fieldtrip/2016-March/010293.html> reported the same error, but it seems that the code was changed meanwhile.
> I'm using Matlab R2017a ver 9.2 and the Fieldtrip version dated from 16-05-2018. Here <http://dropcanvas.com/wq648> you can download the epochs file I used.
> It would be very helpful is someone knows from where this problem could come.
> Thank you very much,
> Best,
> Laetitia 
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20180531/0f69e89c/attachment-0002.html>

More information about the fieldtrip mailing list