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
1c353f5b
Commit
1c353f5b
authored
3 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Further cleanup
parent
0cf66a37
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
code/classes/SCDclass_expcode.m
+11
-13
11 additions, 13 deletions
code/classes/SCDclass_expcode.m
with
11 additions
and
13 deletions
code/classes/SCDclass_expcode.m
+
11
−
13
View file @
1c353f5b
...
...
@@ -623,10 +623,10 @@ classdef SCDclass_expcode
if
(
~
ismember
(
algo
.
getname
,
obj
.
algonamelist
))
obj
.
algonamelist
{
end
+
1
}
=
algo
.
getname
;
obj
.
algos
{
end
+
1
}
=
algo
;
present
=
false
;
algois
present
=
false
;
else
warning
(
'SCDclass_expcode:addalgorithm'
,
'algorithm
''
%s
''
already present in the expcode, importing only wavegens'
,
algo
.
getname
);
present
=
true
;
fprintf
(
'algorithm
''
%s
''
already present in the expcode, importing only wavegens'
,
algo
.
getname
);
algois
present
=
true
;
end
% Importing algorithm MDS objects into the main mdscontainer,
...
...
@@ -635,20 +635,18 @@ classdef SCDclass_expcode
basewgstruct
=
sprintf
(
'SCDsimdata.SCDnode%02d%02d_simdata.wavegen'
,
node
,
cpu
);
algomdscontainer
=
algomdscontainer
.
setwavegenbasestruct
(
basewgstruct
);
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdswavegens
(
algomdscontainer
);
if
~
present
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdsparams
(
algomdscontainer
);
else
return
;
end
if
algoispresent
,
return
;
end
% return if algo is already present
% Importing exported tps
% Importing exported tunable parameters
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdsparams
(
algomdscontainer
);
algoexptps
=
algo
.
getexportedtps
;
if
(
numel
(
algoexptps
)
>
0
)
for
(
ii
=
1
:
numel
(
algoexptps
)
)
if
(
~
ismember
(
algoexptps
{
ii
},
obj
.
exportedtps
)
)
if
numel
(
algoexptps
)
>
0
for
ii
=
1
:
numel
(
algoexptps
)
if
~
ismember
(
algoexptps
{
ii
},
obj
.
exportedtps
)
obj
.
exportedtps
{
end
+
1
}
=
algoexptps
{
ii
};
else
warning
(
'SCDclass_expcode:addalgorithm'
,
'exported tunparams sctruct
''
%s
''
already present, ignoring'
,
algoexptps
{
ii
})
fprintf
(
'exported tunparams sctruct
''
%s
''
already present, ignoring'
,
algoexptps
{
ii
})
end
end
end
...
...
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