Skip to content
Snippets Groups Projects
Commit d0c4f2f6 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

reduce print out when shot>100'000 and no Thomson

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5038 d63d8f72-b253-0410-a779-e742ad2e26cf
parent fddf419e
No related branches found
No related tags found
No related merge requests found
......@@ -651,14 +651,18 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
try
time=mdsdata('\results::thomson:times');
catch
warning('Problems with \results::thomson:times')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
if (nverbose>=1) && shot<100000
warning('Problems with \results::thomson:times')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
end
return
end
if isempty(time) || ischar(time)
thomsontimes=time
warning('!!!!!!!!!!!!!!!!!!!!!!!!!\results::thomson:times is empty? Check')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
thomsontimes=time;
if (nverbose>=1) && shot<100000
warning('!!!!!!!!!!!!!!!!!!!!!!!!!\results::thomson:times is empty? Check')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
end
return
end
if strcmp(data_request_eff(1:2),'ne')
......@@ -682,14 +686,18 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
try
time=mdsdata('\results::thomson:times');
catch
warning('Problems with \results::thomson:times')
warning(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
if (nverbose>=1) && shot<100000
warning('Problems with \results::thomson:times')
warning(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
end
return
end
if isempty(time) || ischar(time)
thomsontimes=time
warning('!!!!!!!!!!!!!!!!!!!!!!!!!\results::thomson:times is empty? Check')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
thomsontimes=time;
if (nverbose>=1) && shot<100000
warning('!!!!!!!!!!!!!!!!!!!!!!!!!\results::thomson:times is empty? Check')
disp(['!!!!!!!!!!!!!!!!!!!!!!!!! cannot continue with ' data_request_eff])
end
return
end
zshift = 0.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment