Back to the main page.

Bug 2210 - EGI header

Reported 2013-06-24 15:27:00 +0200
Modified 2019-08-10 12:03:48 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 major
Assigned to:
Depends on:
See also:

Gio Piantoni - 2013-06-24 15:27:31 +0200

Created attachment 490 EGI file to read Hi, I have a problem reading an EGI .raw file, acquired in May 2010 (I attached it to this bug). Code: cfg.dataset = 'svui_0003_eeg_go-sd_001.raw'; ft_preprocessing(cfg) This is due to this commit: The header of my file is: hdr.orig.header_array: [4 2010 5 6 10 7 57 520 1000 257 1 0 0 0 1 2221 9] The last two logical operators evaluate to FALSE, while it should be TRUE to make it read the data correctly. Can you check whether you can fix the logical conditions so that it returns TRUE for this file? Thanks! Gio

Joseph Dien - 2013-06-25 01:46:53 +0200

Created attachment 491 fix

Joseph Dien - 2013-06-25 01:47:43 +0200

Created attachment 492 event fix

Joseph Dien - 2013-06-25 01:48:47 +0200

Sorry about that! Problem fixed and committed. While testing I also found problems for cases where there are no event tracks and where there are event tracks but no events marked so those have been fixed too. Let me know if everything works now.

Joseph Dien - 2013-06-25 01:49:36 +0200

I've attached the fixes so you can try them out.

Gio Piantoni - 2013-06-25 02:05:54 +0200

Great, thanks! That fixed the problem. You can submit the changes to the main repo. I closed the bug report. Thanks for the quick reply!

Robert Oostenveld - 2019-08-10 12:03:48 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on