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

minor bug fixed

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1820 d63d8f72-b253-0410-a779-e742ad2e26cf
parent d8a0d3f1
No related branches found
No related tags found
No related merge requests found
...@@ -74,9 +74,13 @@ JETsigtimeindx=ones(size(JETkeywrdall)); ...@@ -74,9 +74,13 @@ JETsigtimeindx=ones(size(JETkeywrdall));
% find index of signal called upon % find index of signal called upon
if size(data_type,1)==2 if size(data_type,1)==2
% in case node name was given in 2 parts directly (as old way) % in case node name was given in 2 parts directly (as old way)
index=find(strmatch(data_type(1),JETsiglocation(1,:),'exact') & strmatch(data_type(2),JETsiglocation(2,:),'exact')); ii1=strmatch(data_type(1),JETsiglocation(1,:),'exact');
index=find(strmatch(data_type(2),JETsiglocation(2,ii1),'exact'));
if isempty(index) if isempty(index)
disp('trace not yet registered. If standard data, ask andrea.scarabosio@epfl.ch or olivier.sauter@epfl.ch to create a keyqord entry for this data') disp('********************')
disp('trace not yet registered.')
disp('If standard data, ask andrea.scarabosio@epfl.ch or olivier.sauter@epfl.ch to create a keyqord entry for this data')
disp('********************')
% temporarily add entry in arrays, so can work below % temporarily add entry in arrays, so can work below
index=length(JETkeywrdall)+1; index=length(JETkeywrdall)+1;
JETkeywrdall(end+1)={'new'}; JETkeywrdall(end+1)={'new'};
...@@ -91,8 +95,10 @@ if size(data_type,1)==2 ...@@ -91,8 +95,10 @@ if size(data_type,1)==2
else else
index=strmatch(data_type,JETkeywrdall,'exact'); index=strmatch(data_type,JETkeywrdall,'exact');
end end
disp(['loading' ' ' data_type ' from JET shot #' num2str(shot)]); disp(' ')
disp(['loading' ' ' char(data_type(end)) ' from JET shot #' num2str(shot)]);
disp(['case ' JETkeywrdcase{index}]) disp(['case ' JETkeywrdcase{index}])
disp(' ')
switch JETkeywrdcase{index} switch JETkeywrdcase{index}
case 'simplereaddata' case 'simplereaddata'
......
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