Back to the main page.

Bug 3140 - ft_electroderealign method fiducial asks elecpos

Status NEW
Reported 2016-06-09 14:24:00 +0200
Modified 2016-06-14 00:30:07 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Diego Lozano Soldevilla - 2016-06-09 14:24:34 +0200

During Coimbra workshop we got the following error in the http://www.fieldtriptoolbox.org/tutorial/headmodel_eeg_bem tutorial. I could reproduce it using the most recent FT version Warning: assuming that the units are "mm" > In fileio\private\ft_estimate_units at 49 In fileio\private\ft_convert_units at 110 In ft_read_mri at 461 nas: [87 60 116] lpa: [29 145 155] rpa: [144 142 158] Warning: WARP_APPLY is only a compatibility wrapper, which will soon be removed. Please instead call FT_WARP_APPLY. > In warp_apply at 14 Warning: WARP_APPLY is only a compatibility wrapper, which will soon be removed. Please instead call FT_WARP_APPLY. > In warp_apply at 14 Warning: WARP_APPLY is only a compatibility wrapper, which will soon be removed. Please instead call FT_WARP_APPLY. > In warp_apply at 14 Warning: use cfg.target instead of cfg.template > In ft_checkconfig at 118 In ft_electroderealign at 132 Warning: The field cfg.headshape is forbidden, it will be removed from your configuration > In ft_checkconfig at 208 In ft_electroderealign at 172 using electrodes specified in the configuration matching fiducials {'Nz', 'LPA', 'RPA'} ??? Reference to non-existent field 'elecpos'. Error in ==> ft_electroderealign at 441 tmpl_nas(i,:) = target(i).elecpos(nas_indx,:); The fiducial cfg needs elecpos but I don't know how to defined it. Makes sense to used the same as the elecpos? fid.chanpos = [nas; lpa; rpa]; % ctf-coordinates of fiducials fid.elecpos = [nas; lpa; rpa]; % ctf-coordinates of fiducials fid.label = {'Nz','LPA','RPA'}; % same labels as in elec fid.unit = 'mm'; % same units as mri


Robert Oostenveld - 2016-06-09 15:35:25 +0200

I do not understand where the warning to WARP_APPLY comes from. I cannot find any usage of that combat function any more in the code... ah, it comes from the tutorial itself. I have fixed it there. Also the warnings as to backward compatibility need attention.


Diego Lozano Soldevilla - 2016-06-14 00:30:07 +0200

(In reply to Robert Oostenveld from comment #1) FAQ created to clarify fiducial elec definition http://www.fieldtriptoolbox.org/faq/how_should_i_define_the_fiducial_elec_structure