From 5b7ddab3261882d23e33cad3878d8122a4151a44 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <Olivier.Sauter@epfl.ch> Date: Mon, 3 Feb 2020 00:05:43 +0100 Subject: [PATCH] use mdscurrent=mdsipmex(8) to avoid print out on screen of server --- matlab/TCV/gdat_tcv.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m index 796f3c0e..b2c79d0c 100644 --- a/matlab/TCV/gdat_tcv.m +++ b/matlab/TCV/gdat_tcv.m @@ -140,7 +140,7 @@ if nargin>=1 if isempty(shot) % means mdsopen(shot) already performed or not shot asked for try - if ~mdsremotelist + if isempty(mdsipmex(8)) shot_mds = shot; else shot_mds = mdsipmex(2,'$SHOT'); @@ -158,7 +158,7 @@ if nargin>=1 warning(['shot cannot be opened with ' data_request.data_request]); return end - elseif ischar(data_request) + elseif ischar(data_request) if ~strcmp(data_request,'ids') warning(['shot cannot be opened with ' data_request]); return -- GitLab