Back to the main page.
Bug 2415 - Cannot read event data from biosemi_bdf
Status | CLOSED FIXED |
Reported | 2013-12-06 13:45:00 +0100 |
Modified | 2015-02-11 10:39:50 +0100 |
Product: | FieldTrip |
Component: | fileio |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P3 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | 2409 |
See also: |
David Meijer - 2013-12-06 13:45:51 +0100
Dear Fieldtrip developers, Today I noticed that Ft_definetrial gave an error (line 179) when I tried to read biosemi_bdf EEG data using the Donders' Torque Fieldtrip. Last week the exact same cfg worked on the same data. I think it has to do with a revision of ft_read_event. When I use eventtype = '?' no error appears; however, it finds 0 events and creates 0 trials. Hope you can fix this! Thanks already! David Meijer
Robert Oostenveld - 2013-12-06 15:34:31 +0100
Hi David, thanks for notifying. I made a change there yesterday, see bug 2409. I tested it with all files that I had at hand, but apparently not all possible cases were covered. Could you send me a (possibly small) file with which you have the problem? Then I can try to understand what the code is doing in your case. In the mean time, I will revert the code back to the pre-yesterday version. Robert
Robert Oostenveld - 2013-12-06 15:39:14 +0100
mbp> svn commit ft_read_event.m Sending ft_read_event.m Transmitting file data . Committed revision 8985. If you do an svn update, you will get the fixed version. If you want to use the zip file from ftp, you'll have to wait until tonight for the release. Otherwise see here http://code.google.com/p/fieldtrip/source/browse/trunk/fileio/ft_read_event.m?spec=svn8985&r=8985
Robert Oostenveld - 2013-12-06 15:39:59 +0100
Please see also http://fieldtrip.fcdonders.nl/faq/how_should_i_send_example_data_to_the_developers
Robert Oostenveld - 2013-12-09 10:43:48 +0100
I received a small test file from David: > This morning I made a small (fake) recording (25 MB). > 48 triggers were send with different event values. > This is exactly the type of file that caused problems for me on friday. I copied it to the in-house test repository /home/common/matlab/fieldtrip/data/test/bug2415/TriggerTest.bdf
Robert Oostenveld - 2014-09-16 14:24:01 +0200
The code to address this was already there, there was just an if true % old code else % new code end around it. I removed the old code altogether and made a test script that comprises two bdf files that I have. There is no warning any more in MATLAB 2014a. mac011> svn commit fileio/ft_read_event.m test/test_bug2415.m Sending fileio/ft_read_event.m Adding test/test_bug2415.m Transmitting file data .. Committed revision 9806.