Back to the main page.

Bug 59 - ft_sourceinterpolate crashes on

Status CLOSED WORKSFORME
Reported 2010-03-18 10:43:00 +0100
Modified 2011-01-05 12:01:05 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: Other
Operating System: Linux
Importance: P5 major
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2010-03-18 10:43:13 +0100

cfg = []; mri = read_mri('/home/common/matlab/spm2/canonical/single_subj_T1.mnc'); cfg.method = 'linear'; cfg.sourceunits = 'mm'; cfg.mriunits = 'mm'; PainEffectInt = ft_sourceinterpolate(cfg,PainEffect_stat,mri); % PainEffect_stat.mat is to be found on home\common\temporary Gives: >> PainRelInt = ft_sourceinterpolate(cfg,GAPainRel,mri); Warning: The option cfg.sourceunits is deprecated, support is no longer guaranteed > In checkconfig at 154 In ft_sourceinterpolate at 53 the input is source data with 13662 positions Warning: unexpected dimord "voxel", dimord is removed from data > In public/private/fixdimord at 32 In checkdata at 138 In ft_sourceinterpolate at 62 the input is volume data with dimensions [91 109 91] ??? Undefined function or variable "sens". Error in ==> senstype at 137 if isfield(sens, 'type') Error in ==> convert_units at 67 elseif senstype(obj, 'meg') Error in ==> checkdata at 348 data = convert_units(data); Error in ==> ft_sourceinterpolate at 63 anatomical = checkdata(anatomical, 'datatype', 'volume', 'inside', 'logical', 'feedback', 'yes', 'hasunits', 'yes');


Robert Oostenveld - 2010-03-18 14:47:05 +0100

the latest senstype version has sens.label = input.label; on line 137, and elseif isheader if isfield(input, 'grad') sens = input.grad; isgrad = true; elseif isfield(input, 'elec') sens = input.elec; iselec = true; elseif isfield(input, 'label') sens.label = input.label; % line 137 islabel = true; end in the surounding section. I suspect that Stephen has not recently done a "svn update"


Robert Oostenveld - 2011-01-05 11:57:00 +0100

selected a long list of resolved bugs from roboos and changed the status into "RESOLVED"


Robert Oostenveld - 2011-01-05 12:01:05 +0100

selected all old bugs from roboos with status RESOLVED and changed it into CLOSED