Back to the main page.

Bug 801 - ft_senslabel does not recognize yokogawa160 again, but instead finds yokogawa440(_old_planar)

Status CLOSED FIXED
Reported 2011-07-07 14:30:00 +0200
Modified 2011-07-13 14:46:47 +0200
Product: FieldTrip
Component: yokogawa
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2011-07-07 14:30:40 +0200

This: %--------------------------------------% cfg = []; cfg.dataset = 'end_run01.NR.sqd'; hdr = ft_read_header(cfg.dataset); grad = hdr.grad; vol.r=8; vol.o=[0 0 4]; cfg = []; cfg.vol = vol; cfg.grad = grad; cfg.dip.pos=[-4 -4 4]; cfg.dip.mom = [1 0 0]'; %cfg.relnoise = 40; cfg.absnoise = 5e-10; cfg.ntrials = 100; cfg.dip.frequency = 10; cfg.dip.phase = 0; data1 = ft_dipolesimulation(cfg); %--------------------------------------% Causes this: %--------------------------------------% using headmodel specified in the configuration using gradiometers specified in the configuration ??? Undefined function or variable 'meg_zaxis'. Error in ==> ft_senslabel at 2845 if size(find(meg_zaxis+1==i),2) Error in ==> ft_senstype at 241 elseif (mean(ismember(ft_senslabel('yokogawa440_old_planar'), sens.label)) > 0.8) Error in ==> ft_prepare_vol_sens at 70 iseeg = ft_senstype(sens, 'eeg'); Error in ==> prepare_headmodel at 114 [vol, sens] = ft_prepare_vol_sens(vol, sens, 'channel', cfg.channel, 'order', cfg.order); Error in ==> ft_dipolesimulation at 100 [vol, sens, cfg] = prepare_headmodel(cfg, []); %--------------------------------------%


Stephen Whitmarsh - 2011-07-07 14:32:15 +0200

Created attachment 88 datafile from Yokogawa160 (Akiko's)


Stephen Whitmarsh - 2011-07-07 14:35:06 +0200

*** Bug 796 has been marked as a duplicate of this bug. ***


Robert Oostenveld - 2011-07-07 17:18:34 +0200

I fixed it by hardcoding the yokogawa440 channels in ft_senslabel instead of creating them on the fly. I made a selection of the axial gradiometers for yokogawa440_planar manzana> svn commit Adding fileio/test/test_yokogawa.m Sending forward/ft_senslabel.m Sending forward/ft_senstype.m Transmitting file data ... Committed revision 3798. manzana> svn update U fileio/private/ft_senslabel.m U fileio/private/ft_senstype.m U inverse/private/ft_senslabel.m U inverse/private/ft_senstype.m U plotting/private/ft_senslabel.m U plotting/private/ft_senstype.m Updated to revision 3799. See also fieldtrip/fileio/test/test_yokogawa.m


Robert Oostenveld - 2011-07-07 17:18:42 +0200

I made some more changes in manzana> svn commit Sending forward/ft_senslabel.m Sending forward/ft_senstype.m Sending ft_combineplanar.m Sending ft_prepare_layout.m Sending private/planarchannelset.m Transmitting file data ..... Committed revision 3800.


Robert Oostenveld - 2011-07-13 14:46:47 +0200

changed the status for a whole bunch of resolved bugs to CLOSED