Back to the main page.

Bug 2933 - ft_dipolefitting crashes due to todays changes.

Reported 2015-07-16 14:30:00 +0200
Modified 2016-06-14 16:14:54 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Stephen Whitmarsh - 2015-07-16 14:30:59 +0200

Hola, Around line 330, ft_dipolefitting throws out tmpcfg.elec and tmpcfg.grad before passing tmpcfg on to ft_prepare_sourcemodel, which makes ft_dipolefitting crash. To fix please move (round 330, in ft_dipolefitting): % construct the dipole grid on which the gridsearch will be done tmpcfg = []; tmpcfg.headmodel = headmodel; if ft_senstype(sens, 'eeg') tmpcfg.elec = sens; else tmpcfg.grad = sens; end two lines further, i.e. AFTER: % copy all options that are potentially used in ft_prepare_sourcemodel tmpcfg = keepfields(cfg, {'grid' 'mri' 'headshape' 'symmetry' 'smooth' 'threshold' 'spheremesh' 'inwardshift'}); Cheers, Stephen

Robert Oostenveld - 2015-07-16 16:05:53 +0200

mac011> svn commit ft_dipolefitting.m Sending ft_dipolefitting.m Transmitting file data . Committed revision 10549.

Robert Oostenveld - 2015-07-16 18:20:50 +0200

it seems that test script also detected the problem. I hope that it will work again with the next revision.

Robert Oostenveld - 2016-06-14 16:14:54 +0200

Hereby I am closing multiple bugs that have been resolved for some time now. If you don't agree to the resolution, please reopen.