[FieldTrip] Read mne-python epochs file in fieldtrip

Denis-Alexander Engemann d.engemann at fz-juelich.de
Wed Jan 7 14:24:40 CET 2015


Mhm. That's weird.
Could you save a single epoch to disk and share it privately via email? If
the epoch is large you could crop it using ``epochs.crop``.

--Denis


2015-01-07 13:43 GMT+01:00 Laetitia Grabot <laetitia.grabot at gmail.com>:

> 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
>>
>
>
> _______________________________________________
> 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/a39bfddf/attachment-0002.html>


More information about the fieldtrip mailing list