From f7d34e836bcffc0bef432f28dadf66611456eceb Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Wed, 15 Jan 2020 17:18:18 +0100 Subject: [PATCH] try catch mdsipmex since not available at ITER-IO for example --- matlab/TCV/gdat_tcv.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m index 345182ed..16014647 100644 --- a/matlab/TCV/gdat_tcv.m +++ b/matlab/TCV/gdat_tcv.m @@ -137,8 +137,12 @@ do_mdsopen_mdsclose = 1; % treat 1st arg if nargin>=1 if isempty(shot) - % means mdsopen(shot) already performed - shot_mds = mdsipmex(2,'$SHOT'); + % means mdsopen(shot) already performed or not shot asked for + try + shot_mds = mdsipmex(2,'$SHOT'); + catch + shot_mds = shot; + end if isnumeric(shot_mds); shot = shot_mds; end gdat_data.shot = shot; do_mdsopen_mdsclose = 0; -- GitLab