Back to the main page.

Bug 965 - ft_hastoolbox is used for compat, but it does not detect compat correctly

Status ASSIGNED
Reported 2011-09-15 16:46:00 +0200
Modified 2011-11-04 09:27:56 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2011-09-15 16:46:05 +0200

the consequence is that it will always try to autoadd the compat directory, causing MATLAB addpath() to be called. In case the user (here Irina) has a lot of other directories and files on the path, the MATLAB addpath() command is extremely slow. The solution should be to implement better detection of whether compat is already on the path.


Robert Oostenveld - 2011-11-04 09:27:56 +0100

hmm. actually fieldtrip itself should not rely on compat, and therefore following addpath ~/matlab/fieldtrip ft_defaults the compat directories should not be on the path. There should also not be any fieldtrip function that would require it to be on the path.