Back to the main page.

Bug 1757 - BQ* ref sensors not found in ft_chantype

Reported 2012-10-01 13:20:00 +0200
Modified 2012-10-29 13:44:57 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 major
Assigned to: Robert Oostenveld
Depends on:
Blocks: 1704
See also:

Johanna - 2012-10-01 13:20:50 +0200

hdr = ft_read_header('/home/common/matlab/fieldtrip/data/Subject01.ds'); now crashes, due to the fact that 3 reference sensors BQ1,BQ2 and BQ3 are not read in, thus the new lines added recently by Vladimir in channelposition.m now catch this descrepancy between sens.label (original labels) and 'lab' (the found labels from ft_chantype). (try putting breakpoint at line 125 of channelposition.m, and you get this: K>> ft_chantype(sensorig.label(157)) %sensorig.label(157) is BP3 ans = 'refmag' K>> ft_chantype(sensorig.label(158)) %sensorig.label(158) is BQ1 ans = 'unknown'

Robert Oostenveld - 2012-10-02 11:30:35 +0200

with the 6558 revision I can read it BQ1 is channel 158, find(grad.tra(158,:)) shows a single coil. So it is a magnetometer -> refmag. If I change line 231 in ft_chantype from sel = myregexp('^B[GPR][0-9]$', grad.label); into sel = myregexp('^B[GPQR][0-9]$', grad.label); it works again manzana> svn commit fileio/ft_chantype.m Sending fileio/ft_chantype.m Transmitting file data . Committed revision 6628.

Robert Oostenveld - 2012-10-29 13:44:57 +0100

changed the status of several bugs that were RESOLVED some time ago to CLOSED