Back to the main page.

Bug 2163 - bug in read_neuralynx_nse function dur to variable record size

Status CLOSED FIXED
Reported 2013-05-13 14:47:00 +0200
Modified 2013-09-18 13:19:14 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2013-05-13 14:47:12 +0200

On 13 May 2013, at 12:55, Conrado Bosman wrote: I think I found a potential bug in read_neuralynx_nse that, at least in our case is affecting the way that how we can read spikes in our dataset. The problem is in line 43 in which the value 112 in record size variable is hard coded. This is critical because if you have a size of the waveform that is different (as it is in our case), it changes the framework to look for spikes. I guess, one way to solving is to use the value that should be present at the header. If the data is saved using the function ft_write_spike; then, you can specify the record size, which is stored at the header


Robert Oostenveld - 2013-05-13 14:48:20 +0200

Hi Conrado, Can you attach a test file with a recordsize that is different from 112? thanks Robert


Robert Oostenveld - 2013-05-17 17:52:50 +0200

thanks for the file. I implemented a test script and resolved the problem as suggested. roboos@mentat001> svn commit Sending fileio/private/read_neuralynx_nse.m Adding test/test_bug2163.m Transmitting file data .. Committed revision 8135.


Robert Oostenveld - 2013-09-18 13:19:14 +0200

closed multiple bugs that have been resolved