Skip to content
Snippets Groups Projects
Commit 05909c14 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

Merge branch 'add_gdatpaths_in_gdat' into 'master'

add gdatpaths full call in gdat if missing subpaths

See merge request spc/tcv/tbx/gdat!44
parents 1483b134 17542c54
No related branches found
No related tags found
1 merge request!44add gdatpaths full call in gdat if missing subpaths
Pipeline #31477 passed
......@@ -139,8 +139,7 @@ end
% are many folders in the path
subfunction = sprintf('gdat_%s',deblank(lower(machine_eff)));
if isempty(which(subfunction)),
gdat_path = fileparts(mfilename('fullpath'));
addpath(fullfile(gdat_path,upper(machine_eff)));
gdatpaths; % to make create all subpaths
end
% NOTE: we could also check if it matches the path to the main function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment