Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
a3730945
Commit
a3730945
authored
2 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
default value of tp structures always rewritten
parent
bd0db675
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/SCDclass_algo.m
+11
-8
11 additions, 8 deletions
classes/SCDclass_algo.m
with
11 additions
and
8 deletions
classes/SCDclass_algo.m
+
11
−
8
View file @
a3730945
...
...
@@ -445,14 +445,17 @@ classdef SCDclass_algo
tmplname
=
sprintf
(
'%s_tmpl'
,
obj
.
exportedtps
{
ii
});
if
designDataobj
.
exist
(
tmplname
)
oldEntry
=
designDataobj
.
getEntry
(
tmplname
);
if
isequal
(
oldEntry
.
getValue
.
Value
,
P
.
Value
)
fprintf
(
'%s: keep old template %s since not changed\n'
,
obj
.
getname
,
tmplname
);
continue
;
else
% replace
oldEntry
.
setValue
(
P
);
fprintf
(
'%s: replaced value of template %s since it changed\n'
,
obj
.
getname
,
tmplname
)
end
% isequal does not detect type changes
%if isequal(oldEntry.getValue.Value,P.Value)
% fprintf('%s: keep old template %s since not changed\n',obj.getname,tmplname);
% continue;
%else
% % replace
% oldEntry.setValue(P);
% fprintf('%s: replaced value of template %s since it changed\n',obj.getname,tmplname)
%end
oldEntry
.
setValue
(
P
);
fprintf
(
'%s: replaced value of template %s\n'
,
obj
.
getname
,
tmplname
)
else
fprintf
(
' %s: added new %s\n'
,
obj
.
getname
,
tmplname
);
designDataobj
.
addEntry
(
tmplname
,
P
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment