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
0a7955f6
Commit
0a7955f6
authored
2 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
addwavegen method sets basestructure correcly, setup builds simdata
parent
5f54d62f
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
-7
11 additions, 7 deletions
classes/SCDclass_algo.m
with
11 additions
and
7 deletions
classes/SCDclass_algo.m
+
11
−
7
View file @
0a7955f6
...
...
@@ -451,8 +451,8 @@ classdef SCDclass_algo
end
end
function
obj
=
buildworkspacetpstruct
(
obj
)
%
obj =
buildworkspacetpstruct(obj)
function
buildworkspacetpstruct
(
obj
)
% buildworkspacetpstruct(obj)
%
% This funtion builds workspace structures containing
% replicas of all tunable parameters structures in the data
...
...
@@ -491,8 +491,8 @@ classdef SCDclass_algo
evalin
(
'base'
,
'clear temp;'
);
%cleanup
end
function
obj
=
buildworkspacesimdata
(
obj
)
%
obj =
buildworkspacesimdata(obj)
function
buildworkspacesimdata
(
obj
)
% buildworkspacesimdata(obj)
%
% This function builds a SCDsimdata structure
% containing the necessary timeseries to support
...
...
@@ -503,9 +503,10 @@ classdef SCDclass_algo
% the algorithm
simdata
=
struct
;
if
obj
.
mdscontainer
.
numwavegens
>
0
obj
.
mdscontainer
=
obj
.
mdscontainer
.
setwavegenbasestruct
([
obj
.
getname
'_simdata'
]);
for
wgidx
=
1
:
obj
.
mdscontainer
.
numwavegens
numwavegens
=
obj
.
mdscontainer
.
getnumwavegens
();
if
numwavegens
>
0
%obj.mdscontainer=obj.mdscontainer.setwavegenbasestruct([obj.getname '_simdata']);
for
wgidx
=
1
:
numwavegens
wg
=
obj
.
mdscontainer
.
mdswavegens
(
wgidx
);
eval
([
'simdata.'
wg
.
gettarget
'=timeseries;'
]);
end
...
...
@@ -571,6 +572,8 @@ classdef SCDclass_algo
end
% add to algo's mds object container
obj
.
mdscontainer
=
obj
.
mdscontainer
.
addwavegen
(
wavegen
);
% set default wavegen base structure name
obj
.
mdscontainer
=
obj
.
mdscontainer
.
setwavegenbasestruct
([
obj
.
getname
'_simdata'
]);
end
function
obj
=
printwavegens
(
obj
)
...
...
@@ -723,6 +726,7 @@ classdef SCDclass_algo
% after this call
obj
.
updatetemplatetp
;
obj
.
buildworkspacetpstruct
;
obj
.
buildworkspacesimdata
;
SCDconf_setConf
(
'sim'
);
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