Skip to content
Snippets Groups Projects
Commit 763b14f0 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

gtSetup : fix bug wherever the xml file doesn't exist


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@563 4c865b51-4357-4376-afb4-474e03ccb993
parent 0e4d2e97
No related branches found
No related tags found
No related merge requests found
......@@ -213,15 +213,15 @@ catch mexc
end
end
% update energy field from updated xml file
params_xml.energy = tmpxml.acquisition.energy;
parameters.acq = gtAddMatFile(parameters.acq,params_xml,true,true,false);
if ~isempty(tmpxml)
params_xml.energy = tmpxml.acquisition.energy;
parameters.acq = gtAddMatFile(parameters.acq,params_xml,true,true,false);
end
clear params_xml
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default acquisition parameters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
params_acq = gtAcqDefaultParameters(parameters.acq);
parameters.acq = gtAddMatFile(parameters.acq,params_acq,true,true,false);
clear params_acq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment