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
40242305
Commit
40242305
authored
4 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
mdsparvectorbool loader class added
parent
c73076f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/classes/SCDclass_mdsparscalarbool.m
+41
-0
41 additions, 0 deletions
code/classes/SCDclass_mdsparscalarbool.m
code/classes/SCDclass_mdsparvectorbool.m
+41
-0
41 additions, 0 deletions
code/classes/SCDclass_mdsparvectorbool.m
with
82 additions
and
0 deletions
code/classes/SCDclass_mdsparscalarbool.m
0 → 100644
+
41
−
0
View file @
40242305
classdef
SCDclass_mdsparscalarbool
<
SCDclass_mdspar
% A constant boolean MDS+ parameter
properties
end
methods
function
obj
=
SCDclass_mdsparscalarbool
(
srctdimodel
,
destparam
,
varargin
)
obj
@
SCDclass_mdspar
();
% Constructor parser customization definitions here
obj
=
obj
.
parseconstructorcommon
(
srctdimodel
,
destparam
,
varargin
);
% Constructor parser customization results here
obj
.
classname
=
mfilename
;
obj
.
marteclassname
=
'MDSParScalarBool'
;
end
function
actualizedata
(
obj
,
shot
)
obj
=
obj
.
preactualizecommon
(
shot
);
if
~
obj
.
actualizable
,
return
;
end
obj
.
caststring
=
sprintf
(
'%s=logical(%s);'
,
obj
.
assignvar
,
obj
.
assignvar
);
obj
.
postactualizecommon
(
shot
);
end
function
[
obj
,
value
]
=
getdata
(
obj
,
shot
)
[
obj
,
value
]
=
obj
.
getdatacommon
(
shot
);
value
=
uint8
(
value
);
end
function
printinfo
(
obj
)
obj
.
printinfocommon
;
end
function
entrystring
=
genMARTe2entry
(
obj
,
shot
)
entrystring
=
obj
.
genMARTe2entrycommon
(
shot
);
entrystring
=
[
entrystring
' }'
];
end
end
end
This diff is collapsed.
Click to expand it.
code/classes/SCDclass_mdsparvectorbool.m
0 → 100644
+
41
−
0
View file @
40242305
classdef
SCDclass_mdsparvectorbool
<
SCDclass_mdspar
% A constant vector boolean MDS+ parameter
properties
end
methods
function
obj
=
SCDclass_mdsparvectorbool
(
srctdimodel
,
destparam
,
varargin
)
obj
@
SCDclass_mdspar
();
% Constructor parser customization definitions here
obj
=
obj
.
parseconstructorcommon
(
srctdimodel
,
destparam
,
varargin
);
% Constructor parser customization results here
obj
.
classname
=
mfilename
;
obj
.
marteclassname
=
'MDSParVectorBool'
;
end
function
actualizedata
(
obj
,
shot
)
obj
=
obj
.
preactualizecommon
(
shot
);
if
~
obj
.
actualizable
,
return
;
end
obj
.
caststring
=
sprintf
(
'%s=logical(%s);'
,
obj
.
assignvar
,
obj
.
assignvar
);
obj
.
postactualizecommon
(
shot
);
end
function
[
obj
,
value
]
=
getdata
(
obj
,
shot
)
[
obj
,
value
]
=
obj
.
getdatacommon
(
shot
);
value
=
uint8
(
value
);
end
function
printinfo
(
obj
)
obj
.
printinfocommon
;
end
function
entrystring
=
genMARTe2entry
(
obj
,
shot
)
entrystring
=
obj
.
genMARTe2entrycommon
(
shot
);
entrystring
=
[
entrystring
' }'
];
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