<div dir="ltr"><div>Thanks Denis for the quick answer!<br></div>My code looks the same than in the tutorial, that's why I don't understand the problem. I tried with the latest version of the day of Fieldtrip, but I still have the same error. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-07 12:57 GMT+01:00 Denis-Alexander Engemann <span dir="ltr"><<a href="mailto:d.engemann@fz-juelich.de" target="_blank">d.engemann@fz-juelich.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div dir="ltr">Hi Laetitia,
<div><br>
</div>
<div>here's a tutorial on integrating Fieldtrip with MNE-Python:</div>
<div><br>
</div>
<div><a href="http://fieldtrip.fcdonders.nl/development/integrate_with_mne" target="_blank">http://fieldtrip.fcdonders.nl/development/integrate_with_mne</a><br>
</div>
<div><br>
</div>
<div>You should make sure to use recent fieldtrip code, the support for reading MNE-Python epochs has been added quite recently to the MNE-Matlab tools used inside Fieldtrip.</div>
<div><br>
</div>
<div>HTH,</div>
<div>Denis</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"><div><div class="h5">2015-01-07 9:57 GMT+01:00 Laetitia Grabot <span dir="ltr">
<<a href="mailto:laetitia.grabot@gmail.com" target="_blank">laetitia.grabot@gmail.com</a>></span>:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Dear all,<br>
</div>
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:
<br>
<b><br>
cfg = [];<br>
cfg.dataset = filename;<br>
data1 = ft_preprocessing(cfg);</b><br>
<br>
</div>
And I get the following error: <br>
<br>
<b>Error using fiff_setup_read_raw (line 89)<br>
No raw data in<br>
/neurospin/meg/meg_tmp/PhaseTime_Anne_2013/epochs/jm100042_equalizedEpochs_allCond_firstStimLocked_filtr45Hz_Afirst.fif<br>
<br>
Error in fiff_setup_read_raw (line 89)<br>
            error(me,'No raw data in %s',fname);<br>
<br>
Error in ft_read_header (line 1157)<br>
        raw = fiff_setup_read_raw(filename);<br>
<br>
Error in ft_preprocessing (line 338)<br>
  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);<br>
</b><br>
</div>
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.<br>
<br>
</div>
Thanks a lot, <br>
</div>
Best,<br>
</div>
Laetitia G.<br>
</div>
<br></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<font color="Black" size="1" face="Arial"><br>
------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
Forschungszentrum Juelich GmbH<br>
52425 Juelich<br>
Sitz der Gesellschaft: Juelich<br>
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498<br>
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher<br>
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),<br>
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,<br>
Prof. Dr. Sebastian M. Schmidt<br>
------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
<br>
</font>
</div>

<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>