Skip to content
Snippets Groups Projects

add gdatpaths full call in gdat if missing subpaths

Merged Olivier Sauter requested to merge add_gdatpaths_in_gdat into master
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -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.
Loading