Back to the main page.

Bug 3327 - BUG in http://www.fieldtriptoolbox.org/example/fixing_a_missing_sensor

Status CLOSED FIXED
Reported 2017-08-01 13:15:00 +0200
Modified 2017-11-20 20:06:43 +0100
Product: FieldTrip
Component: documentation
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Steffen - 2017-08-01 13:15:56 +0200

Created attachment 844 Reproduces bug in interpolation example script and fixes it There is a minor bug in the example script that leads to an infinite while loop if the missing sensors are at the end of the data.label array. I attached a file that reproduces the bug using example data from the website and a piece of code that fixes it (for my example script, not for the example given on the website). Hope this helps, -Steffen.


Jan-Mathijs Schoffelen - 2017-08-07 12:24:49 +0200

Thanks for catching this. I have updated the script on the wiki (in a slightly different way). I have not checked whether it works.