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
07046443
Commit
07046443
authored
2 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
SCD to generic SCDDS class
parent
e33ab3b9
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
classes/SCDDS.m
+14
-13
14 additions, 13 deletions
classes/SCDDS.m
with
14 additions
and
13 deletions
classes/SCD.m
→
classes/SCD
DS
.m
+
14
−
13
View file @
07046443
classdef
SCD
% main interface class for interacting with SCD expcodes
classdef
SCD
DS
% main interface class for interacting with SCD
DS
expcodes
%
% H = SCD.load(expcode); % loads the obj for a desired expcode
% H = SCD.init(expcode); % loads and initialize
% H = SCD.prepforcompile(expcode); % loads, initialize, and setup (ready for compilation)
% H = SCD.prepforsim(expcode,shot); % does load, init, setup, actualize
% (Static) methods:
% H = .load(expcode); % loads the obj for a desired expcode
% H = .init(expcode); % loads and initialize
% H = .prepforcompile(expcode); % loads, initialize, and setup (ready for compilation)
% H = .prepforsim(expcode,shot); % does load, init, setup, actualize
%
% C =
SCD
.getexpcodecontainer; % get expcode container
% C = .getexpcodecontainer; % get expcode container
methods
(
Static
)
function
H
=
load
(
expcode
)
% Creating the experimental code container class
SCD
exps
=
SCD
.
getexpcodecontainer
();
H
=
SCD
exps
.
getbymaincode
(
expcode
);
exp
code
s
=
SCD
DS
.
getexpcodecontainer
();
H
=
exp
code
s
.
getbymaincode
(
expcode
);
SCDconf_setConf
(
'SIM'
);
% set conf for simulation
end
function
H
=
init
(
expcode
)
H
=
SCD
.
load
(
expcode
);
H
=
SCD
DS
.
load
(
expcode
);
H
.
init
;
end
function
H
=
prepforcompile
(
expcode
)
H
=
SCD
.
load
(
expcode
);
H
=
SCD
DS
.
load
(
expcode
);
H
.
init
;
H
.
setup
;
end
function
H
=
prepforsim
(
expcode
,
shot
)
fprintf
(
'\n### EXPCODE LOAD PHASE ###\n'
);
H
=
SCD
.
load
(
expcode
);
H
=
SCD
DS
.
load
(
expcode
);
fprintf
(
'\n### EXPCODE INIT PHASE ###\n'
);
H
.
init
;
fprintf
(
'\n### EXPCODE SETUP PHASE ###\n'
);
...
...
@@ -43,7 +44,7 @@ classdef SCD
end
function
list
()
SCD
.
help
;
SCD
DS
.
help
;
end
function
clean_dd
()
...
...
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