Back to the main page.

Bug 577 - Bug in the identification of channels to use for repairing a bad channel

Status CLOSED INVALID
Reported 2011-04-11 21:22:00 +0200
Modified 2011-06-21 15:52:57 +0200
Product: FieldTrip
Component: preproc
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 major
Assigned to: Jörn M. Horschig
URL:
Tags:
Depends on:
Blocks:
See also:

- 2011-04-11 21:22:08 +0200

I believe there is a bug in ft_channelrepair.m which, in cases when there is no 1:1 mapping between channels and sensors), leads to an incorrect selection of neighbors channels to be included in the repair matrix. In line 107: repair(k,l) = 1/distance; the neighbor channel is selected using a sensor index. The line should be: repair(k, match_str(data.label, sens.label{l})) = 1/distance; Please let me know if this is the case. Thanks


Jörn M. Horschig - 2011-04-21 10:03:42 +0200

Hi, Thanks for reporting the bug! Anyway, the bug has already been fixed in early March. If you update your FieldTrip version, the bug is fixed. Just by the way, the fix works exactly how you proposed. Best, Jörn