Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit 2c400ffa authored by Pierre Cazenave's avatar Pierre Cazenave

Fix verbose statements being printed even when the verbose flag is disabled.

parent 9826f1e3
......@@ -277,7 +277,9 @@ for aa=1:length(varnames)
% Extract number of dimensions, lengths and names of all variables
%----------------------------------------------------------------------
% tic
fprintf('Processing variable %s: ', varnames{aa})
if ftbverbose
fprintf('Processing variable %s: ', varnames{aa})
end
% Tidy up the previous iteration's variables so we don't get confused.
clear dimName dimLength
......@@ -289,7 +291,7 @@ for aa=1:length(varnames)
else
netcdf.close(nc)
varargout{1} = 0;
fprintf('\n')
if ftbverbose; fprintf('\n'); end
error('Variable %s NOT found in file. Stopping. Check input variable names.', varnames{aa})
end
varID=netcdf.inqVarID(nc,vars{varidx(aa)});
......@@ -302,12 +304,18 @@ for aa=1:length(varnames)
if ftbverbose
if dd == 1
if length(dimids) == 1
fprintf('%i dimension: %s ', dimens, dimName{dd})
if ftbverbose
fprintf('%i dimension: %s ', dimens, dimName{dd})
end
else
fprintf('%i dimensions: %s ', dimens, dimName{dd})
if ftbverbose
fprintf('%i dimensions: %s ', dimens, dimName{dd})
end
end
else
fprintf('%s ', dimName{dd})
if ftbverbose
fprintf('%s ', dimName{dd})
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment