fieldtrip/fieldtrip — pull request #12 by gpiantoni (2013-04-14 16:06:56+00:00)
Title: fieldtrip2fiff converts raw, epoched, and timelocked data

Rewritten fieldtrip2fiff, which did not seem to work properly. Now it should work with CTF, neuromag, and EEG data. It should take care of the changes to the labels, and it writes EEG locations to the FIFF as well.

I also added a test function. You should change all the paths to the files. I used the CTF example from the tutorial, the sample data from MNE, and my own EGI EEG dataset. Any EEG should work. Please, also check the TODO. In particular, line 193 of mne2grad is not compatible with the current version, because it reads from eeg_loc only if there are less than 60 electrodes. I don't think it's important.

Let me know if you have problems or if the test does not run.