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

add idsok type output optional

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11387 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 99aeab20
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ function [ids_saved,varargout] = tcv2ids(shot,run,varargin);
% varargin{1}: ids to load, by default all defined so far
% {'equilibrium', 'magnetics', 'pf_active','wall'} or a subset
%
% varargout{1}: return also the ids in array of structure with the names, to allow easy use of plotallids
%
% initialize input parser
p = inputParser;
......@@ -99,4 +101,10 @@ end
%% Close the file
imas_close(idx)
if nargout>=2
for i=1:length(params_tcv2ids.ids_names)
ids_to_get = params_tcv2ids.ids_names{i};
varargout{1}.ids{i} = ids_saved.(ids_to_get);
varargout{1}.idsname{i} = ids_to_get;
end
end
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