From d4fae2cd9e0eba1e59b50f05b9e04bea6db20755 Mon Sep 17 00:00:00 2001 From: Antonia Frank <antonia.frank@epfl.ch> Date: Thu, 8 Aug 2024 17:50:19 +0200 Subject: [PATCH] Add msg variable when no active launchers in the shot --- matlab/TCV/gdat_tcv.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m index 7f4dd7f1..44d240e8 100644 --- a/matlab/TCV/gdat_tcv.m +++ b/matlab/TCV/gdat_tcv.m @@ -1756,7 +1756,6 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') filled_successfully = true; %set flag to true catch ME warning('Problem retrieving TORAY data. \nError message: %s',ME.message); - getReport(ME) % without ; to get output % try to identify cause of the error if ~check_nodes_filled(shot,'toray') if ~isempty(ec_inputs.launchers_active) @@ -1765,6 +1764,8 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') else msg = 'write_pyro(shot) found active launchers, but TORAY nodes are not filled, check hldsi(shot), and (ask to) relaunch TORAY.'; end + else + msg = 'No active launchers in this shot. There was probably no EC in this shot.'; end elseif ~isempty(gdat_data.gdat_params.trialindx) msg = 'Is the trial index filled? Check TORAY nodes with hdlsi(shot).'; -- GitLab