Skip to content
Snippets Groups Projects
Commit 41e1b3ae authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Add setpaths_gdat.m for automatically adding paths

parent 198b7559
No related branches found
No related tags found
1 merge request!110Add test coverage and update test scripts
......@@ -11,7 +11,7 @@ end
a=which('gdat');
path_gdat = fileparts(a);
if ~findstr(path,[path_gdat,':'])
warning('Folder %s containing gdat.m is not in your path!!',path_gdat);
error('Folder %s containing gdat.m is not in your path!!',path_gdat);
end
if isempty(a), error('gdat is not in the MATLAB path'); end
......@@ -22,7 +22,7 @@ a = fileparts(a);
machines=[{'JET'} {'TCV'} {'AUG'} {'D3D'} {'KSTAR'} {'TCV_IMAS'} {'AUG_IMAS'} {'CHDF'} {'IMAS'}];
add_paths = cell(1,length(machines));
for i=1:length(machines)
for i=1:numel(machines)
add_paths{i}=fullfile(a,machines{i});
end
if ~remove
......
% Call gdat path adding function
gdatpaths();
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