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

fix IDA call and catch error in plot_torbeam

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5679 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 022bd5c4
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ for ifield=1:length(list_fields) ...@@ -56,6 +56,7 @@ for ifield=1:length(list_fields)
titleg{end+1} = ['L' num2str(igyro)]; titleg{end+1} = ['L' num2str(igyro)];
end end
end end
if ~isempty(titleg) ; legend(titleg); end if ~isempty(titleg) ; legend(titleg); end
eval(['fig_handles.' list_fields{ifield} '.titleg = titleg;']); eval(['fig_handles.' list_fields{ifield} '.titleg = titleg;']);
xlabel('time [s]') xlabel('time [s]')
......
...@@ -62,7 +62,7 @@ if shot>0 ...@@ -62,7 +62,7 @@ if shot>0
dousebetapol = '-betapol'; dousebetapol = '-betapol';
if hhIDA.handle~=0; if hhIDA.handle~=0;
netest=gdat(shot,{'IDA','ne'}); netest=gdat(shot,{'IDA','ne'});
tetest=gdat(shot,{'IDA','te'}); tetest=gdat(shot,{'IDA','Te'});
if ~isempty(netest.data) && ~isempty(tetest.data) if ~isempty(netest.data) && ~isempty(tetest.data)
run_with_IDA = 1; run_with_IDA = 1;
dousebetapol = ''; % can use Te from IDA dousebetapol = ''; % can use Te from IDA
...@@ -120,7 +120,10 @@ if exist('tbout'); ...@@ -120,7 +120,10 @@ if exist('tbout');
torbeam_out_struct = tbout; torbeam_out_struct = tbout;
end end
fig_handles=plot_torbeam(torbeam_out_struct); try
fig_handles=plot_torbeam(torbeam_out_struct);
catch
end
% comments for hiytory backup: % comments for hiytory backup:
......
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