Skip to content
Snippets Groups Projects
Commit eb7e363b authored by Luke Simons's avatar Luke Simons
Browse files

Added try catch block incase IMAS_VERSION is undefined

parent e711fb1f
Branches
Tags
1 merge request!195Resolve "Missing power launched and position field for NBI IDS"
Pipeline #265376 failed
......@@ -30,9 +30,13 @@ function [ids_from_tcv,varargout] = tcv2ids(shot,varargin);
%
imas_version_number=getenv('IMAS_VERSION');
cocos_out_default=11;
if str2num(imas_version_number(1)) >= 4
cocos_out_default=17;
cocos_out_default=17;
try
if str2num(imas_version_number(1)) < 4
cocos_out_default=11;
end
catch
warning('IMAS_VERSION undefined, assuming cocos_out=17');
end
% initialize input parser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment