Back to the main page.

Bug 3410 - ft_headmodel_dipoli doesn't work

Reported 2018-02-01 11:30:00 +0100
Modified 2019-08-10 12:36:50 +0200
Product: FieldTrip
Component: external
Version: unspecified
Hardware: Macintosh
Operating System: Mac OS
Importance: P5 major
Assigned to: Robert Oostenveld
Depends on:
See also:

Steve - 2018-02-01 11:30:19 +0100

The below script doesn't work to create a headmodel. The mesh has been double/triple/quadruple checked and appears to be similar to the mesh created in the fieldtrip tutorial. The script works using 'bemcp' as a Beamformer method in place of 'dipoli'. cfg = []; cfg.method = 'dipoli'; cfg.tissue = {'brain', 'skull', 'scalp'}; cfg.conductivity = [1 1/80 1].*0.33; headmodel_eeg = ft_prepare_headmodel(cfg, mesh_eeg); The error message is: using the executable "/Users/username/Documents/MATLAB/toolbox/fieldtrip-20170305/external/dipoli/dipoli.maci" /private/tmp/ line 3: /Users/username/Documents/MATLAB/toolbox/fieldtrip-20170305/external/dipoli/dipoli.maci: Permission denied Error using ft_headmodel_dipoli (line 211) an error ocurred while running the dipoli executable - please look at the screen output Error in ft_prepare_headmodel (line 280) headmodel = ft_headmodel_dipoli(geometry, 'conductivity', cfg.conductivity, 'isolatedsource', cfg.isolatedsource); Any help would be much appreciated! Thanks Steve

Robert Oostenveld - 2018-02-01 17:20:32 +0100

The script works as far as I can see, but according to the screen output the executable can apparently not be executed "dipoli.maci: Permission denied" Open a terminal and ensure that the execute flag is set. I.e. cd /Users/username/Documents/MATLAB/toolbox/fieldtrip-20170305/external/dipoli/ chmod +x dipoli.maci Note that this ia an external tool, which is not maintained or supported by the fieldtrip team. It seems that this is not a bug in the fieldtrip code itself, so better follow up on the mailing list.

Robert Oostenveld - 2019-08-10 12:36:50 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on