From 11b6c23fdeafa8ecb1871ce28933eec94c6b3067 Mon Sep 17 00:00:00 2001 From: Antonia Frank <antonia.frank@epfl.ch> Date: Wed, 21 Aug 2024 18:37:56 +0200 Subject: [PATCH] Remove space from hostname when checking if user is on lac8 --- matlab/TCV_IMAS/tcv_get_ids_core_sources.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/TCV_IMAS/tcv_get_ids_core_sources.m b/matlab/TCV_IMAS/tcv_get_ids_core_sources.m index 2e598bb8..bd6a9e3b 100644 --- a/matlab/TCV_IMAS/tcv_get_ids_core_sources.m +++ b/matlab/TCV_IMAS/tcv_get_ids_core_sources.m @@ -387,6 +387,7 @@ id_nbi.index = 2; id_nbi.name = 'nbi'; disp('Loading of current & power densities from ASTRA not implemented yet.') disp('Checking if ASTRA run available on partition /Lac8_D:') [~,hostname] = unix('hostname'); +hostname = hostname(~isspace(hostname)); if strcmp(hostname,'lac8.epfl.ch') unix(sprintf('ls /Lac8_D/ASTRA/ | grep ''%i'' && echo File for shotnumber exists! || echo File for shotnumber does not exist!',shot)); else -- GitLab