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

add gdatpaths full call in gdat if missing subpaths

parent 1483b134
No related branches found
No related tags found
1 merge request!44add gdatpaths full call in gdat if missing subpaths
Pipeline #31435 passed with stage
in 1 minute and 43 seconds
......@@ -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.
Finish editing this message first!
Please register or to comment