[FieldTrip] Read mne-python epochs file in fieldtrip
Laetitia Grabot
laetitia.grabot at gmail.com
Wed Jan 7 13:43:21 CET 2015
Thanks Denis for the quick answer!
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.
2015-01-07 12:57 GMT+01:00 Denis-Alexander Engemann <
d.engemann at fz-juelich.de>:
> Hi Laetitia,
>
> here's a tutorial on integrating Fieldtrip with MNE-Python:
>
> http://fieldtrip.fcdonders.nl/development/integrate_with_mne
>
> 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.
>
> HTH,
> Denis
>
>
>
>
>
> 2015-01-07 9:57 GMT+01:00 Laetitia Grabot <laetitia.grabot at gmail.com>:
>
>> 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.fif
>> Error 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.
>>
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>>
>
>
>
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150107/f86a2e96/attachment-0002.html>
More information about the fieldtrip
mailing list