Skip to content
Snippets Groups Projects
Commit 11b6c23f authored by Antonia Frank's avatar Antonia Frank
Browse files

Remove space from hostname when checking if user is on lac8

parent da940c4a
No related branches found
No related tags found
1 merge request!165Core sources tcv2ids2database
Pipeline #205118 passed
...@@ -387,6 +387,7 @@ id_nbi.index = 2; id_nbi.name = 'nbi'; ...@@ -387,6 +387,7 @@ id_nbi.index = 2; id_nbi.name = 'nbi';
disp('Loading of current & power densities from ASTRA not implemented yet.') disp('Loading of current & power densities from ASTRA not implemented yet.')
disp('Checking if ASTRA run available on partition /Lac8_D:') disp('Checking if ASTRA run available on partition /Lac8_D:')
[~,hostname] = unix('hostname'); [~,hostname] = unix('hostname');
hostname = hostname(~isspace(hostname));
if strcmp(hostname,'lac8.epfl.ch') 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)); unix(sprintf('ls /Lac8_D/ASTRA/ | grep ''%i'' && echo File for shotnumber exists! || echo File for shotnumber does not exist!',shot));
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment