Skip to content
Snippets Groups Projects
Commit b894e8b1 authored by Federico Felici's avatar Federico Felici
Browse files

Don't replace tp template if it is unchanged

parent 7c05c104
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,13 @@ classdef SCDclass_algo ...@@ -132,7 +132,13 @@ classdef SCDclass_algo
DD = obj.opendatadictionarydesigndata; DD = obj.opendatadictionarydesigndata;
tmplname = sprintf('%s_tp_tmpl',obj.getname); tmplname = sprintf('%s_tp_tmpl',obj.getname);
if DD.exist(tmplname) if DD.exist(tmplname)
DD.deleteEntry(tmplname); fprintf('deleted previous entry, '); oldEntry = DD.getEntry(tmplname);
if isequal(oldEntry,TP)
fprintf('no change in tp template, keep old\n');
return;
else
DD.deleteEntry(tmplname); fprintf('deleted previous entry, ');
end
end end
fprintf('added new %s\n',tmplname); fprintf('added new %s\n',tmplname);
DD.addEntry(tmplname,P) DD.addEntry(tmplname,P)
......
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