Skip to content
Snippets Groups Projects
gdatpaths.m 568 B
Newer Older
function gdatpaths(remove)
%
% add paths for gdat directory
%
% assumes gdat already available
%
if nargin < 1
  remove = false;
end

if isempty(a), error('gdat is not in the MATLAB path'); end
a = fileparts(a);
% machines=[{'JET'} {'TCV'} {'AUG'} {'D3D'}];
% machines=[{'JET'} {'TCV'} {'AUG'} {'KSTAR'}];
machines=[{'JET'} {'TCV'} {'AUG'} {'D3D'} {'KSTAR'} {'TCV_IMAS'}];
Antoine Merle's avatar
Antoine Merle committed
add_paths = cell(1,length(machines));
if ~remove
  addpath(add_paths{:});
else
  rmpath(add_paths{:});
end