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
31890d4f
Commit
31890d4f
authored
5 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Method to create data structures moved to SCDclass_expcode.m
parent
b7e9b6e6
No related branches found
Branches containing commit
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_mdsobjcontainer.m
+2
-52
2 additions, 52 deletions
code/classes/SCDclass_mdsobjcontainer.m
with
2 additions
and
52 deletions
code/classes/SCDclass_mdsobjcontainer.m
+
2
−
52
View file @
31890d4f
...
...
@@ -11,7 +11,7 @@ classdef SCDclass_mdsobjcontainer
properties
numparams
% number of configured params objects
mdsparams
% params objects array
numwavegens
% number o
d
configured wavegens objects
numwavegens
% number o
f
configured wavegens objects
mdswavegens
% wavegens objects array
simstructlist
% list of names of simstructs to be transferred to
% base workspace upon expcode setup
...
...
@@ -23,34 +23,7 @@ classdef SCDclass_mdsobjcontainer
function
obj
=
SCDclass_mdsobjcontainer
()
% contructor, empty container
obj
.
numparams
=
0
;
obj
.
numwavegens
=
0
;
obj
.
simstructlist
=
[
...
{
'SCDnode01simdata'
},
...
{
'SCDnode02simdata'
},
...
{
'SCDnode03simdata'
},
...
{
'SCDnode06simdata'
},
...
{
'SCDnode07simdata'
},
...
{
'SCDnode08simdata'
},
...
{
'SCDnode0201_simdata'
},
...
{
'SCDnode0202_simdata'
},
...
{
'SCDnode0203_simdata'
},
...
{
'SCDnode0204_simdata'
},
...
{
'SCDnode0301_simdata'
},
...
{
'SCDnode0302_simdata'
},
...
{
'SCDnode0303_simdata'
},
...
{
'SCDnode0304_simdata'
},
...
{
'SCDnode0601_simdata'
},
...
{
'SCDnode0602_simdata'
},
...
{
'SCDnode0603_simdata'
},
...
{
'SCDnode0604_simdata'
},
...
{
'SCDnode0701_simdata'
},
...
{
'SCDnode0702_simdata'
},
...
{
'SCDnode0703_simdata'
},
...
{
'SCDnode0704_simdata'
},
...
{
'SCDnode0801_simdata'
}
...
];
obj
.
numwavegens
=
0
;
end
function
obj
=
addparameter
(
obj
,
param
)
...
...
@@ -173,30 +146,7 @@ classdef SCDclass_mdsobjcontainer
end
end
end
function
obj
=
buildworkspacesimstruct
(
obj
)
% this funtion builds a workspace structure containing
% a replica of all simulation structures in the data
% dictionaries, this structure is the one actually used
% for loading simulation wavegen data
% It is better not to use directly data dictionaries structures
% to avoid flooding dds with big sim data sets (and
% conseguently the SCD SVN itself
dd
=
SCDconf_getdatadict
(
'tcv.sldd'
);
evalin
(
'base'
,
'SCDsimdata=struct();'
);
for
ii
=
1
:
numel
(
obj
.
simstructlist
)
simstructname
=
char
(
obj
.
simstructlist
(
ii
));
simstruct
=
dd
.
getEntry
(
simstructname
)
.
getValue
;
assignstr
=
sprintf
(
'SCDsimdata.%s=temp;'
,
simstructname
);
assignin
(
'base'
,
'temp'
,
simstruct
);
evalin
(
'base'
,
assignstr
);
end
evalin
(
'base'
,
'clear temp;'
);
end
function
obj
=
importmdsobjects
(
obj
,
source
)
% parameters import
...
...
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