From 49d58a81ea60e188eb684733b161bbadbb147f14 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Fri, 22 Apr 2016 10:21:47 +0000 Subject: [PATCH] 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 --- crpptbx/AUG/plot_torbeam.m | 1 + crpptbx/AUG/run_torbeam_fullshot.m | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crpptbx/AUG/plot_torbeam.m b/crpptbx/AUG/plot_torbeam.m index b5a3d224..2943eb90 100644 --- a/crpptbx/AUG/plot_torbeam.m +++ b/crpptbx/AUG/plot_torbeam.m @@ -56,6 +56,7 @@ for ifield=1:length(list_fields) titleg{end+1} = ['L' num2str(igyro)]; end end + if ~isempty(titleg) ; legend(titleg); end eval(['fig_handles.' list_fields{ifield} '.titleg = titleg;']); xlabel('time [s]') diff --git a/crpptbx/AUG/run_torbeam_fullshot.m b/crpptbx/AUG/run_torbeam_fullshot.m index a491bc57..cc84f4ac 100644 --- a/crpptbx/AUG/run_torbeam_fullshot.m +++ b/crpptbx/AUG/run_torbeam_fullshot.m @@ -62,7 +62,7 @@ if shot>0 dousebetapol = '-betapol'; if hhIDA.handle~=0; netest=gdat(shot,{'IDA','ne'}); - tetest=gdat(shot,{'IDA','te'}); + tetest=gdat(shot,{'IDA','Te'}); if ~isempty(netest.data) && ~isempty(tetest.data) run_with_IDA = 1; dousebetapol = ''; % can use Te from IDA @@ -120,7 +120,10 @@ if exist('tbout'); torbeam_out_struct = tbout; end -fig_handles=plot_torbeam(torbeam_out_struct); +try + fig_handles=plot_torbeam(torbeam_out_struct); +catch +end % comments for hiytory backup: -- GitLab