<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Laetitia<div class=""><br class=""></div><div class="">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 <a href="https://github.com/mne-tools/mne-matlab" class="">https://github.com/mne-tools/mne-matlab</a></div><div class=""><br class=""></div><div class="">best regards,</div><div class="">Robert</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 23 May 2018, at 13:42, Laetitia Grabot <<a href="mailto:laetitia.grabot@gmail.com" class="">laetitia.grabot@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><div class="">Dear all,</div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class="">cfg = [];<br class="">cfg.dataset = filename;<br class="">data = ft_preprocessing(cfg);</div><div class=""><br class=""></div><div class="">Error using fiff_read_epochs (line 47)<br class="">Could not find epochs data</div><div class="">Error in fiff_read_epochs (line 47)<br class="">    error(me,'Could not find epochs data');</div><div class="">Error in ft_read_header (line 1846)<br class="">        epochs = fiff_read_epochs(filename);</div><div class="">Error in ft_read_header (line 125)<br class="">    hdr{i} = ft_read_header(filename{i}, varargin{:});</div><div class="">Error in ft_preprocessing (line 397)<br class="">  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat,...</div><div class=""><br class=""></div><div class="">I saw that a former <a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2016-March/010293.html" class="">thread</a> reported the same error, but it seems that the code was changed meanwhile.</div><div class="">I'm using Matlab R2017a ver 9.2 and the Fieldtrip version dated from 16-05-2018. <a href="http://dropcanvas.com/wq648" class="">Here</a> you can download the epochs file I used.</div><div class="">It would be very helpful is someone knows from where this problem could come.</div><div class=""><br class=""></div><div class="">Thank you very much,</div><div class="">Best,</div><div class="">Laetitia </div></div>
_______________________________________________<br class="">fieldtrip mailing list<br class=""><a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div></blockquote></div><br class=""></div></body></html>