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
afc296c2
Commit
afc296c2
authored
3 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Ensure user calls addalgo/addwrapper method with output
parent
5e8f7d7f
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_component.m
+1
-0
1 addition, 0 deletions
code/classes/SCDclass_component.m
code/classes/SCDclass_node.m
+1
-0
1 addition, 0 deletions
code/classes/SCDclass_node.m
with
2 additions
and
0 deletions
code/classes/SCDclass_component.m
+
1
−
0
View file @
afc296c2
...
@@ -18,6 +18,7 @@ classdef SCDclass_component
...
@@ -18,6 +18,7 @@ classdef SCDclass_component
methods
methods
function
obj
=
addalgo
(
obj
,
algo
)
function
obj
=
addalgo
(
obj
,
algo
)
assert
(
nargout
==
1
,
'must assign output for addalgo method'
)
% add an algorithm object
% add an algorithm object
assert
(
isa
(
algo
,
'SCDclass_algo'
));
assert
(
isa
(
algo
,
'SCDclass_algo'
));
...
...
This diff is collapsed.
Click to expand it.
code/classes/SCDclass_node.m
+
1
−
0
View file @
afc296c2
...
@@ -41,6 +41,7 @@ classdef SCDclass_node < SCDclass_component
...
@@ -41,6 +41,7 @@ classdef SCDclass_node < SCDclass_component
% varalgo is the variant subsystem number used to select this wrapper
% varalgo is the variant subsystem number used to select this wrapper
% isactive (true by default) sets whether the addition of the wrapper
% isactive (true by default) sets whether the addition of the wrapper
% also sets the cpu to be active;
% also sets the cpu to be active;
assert
(
nargout
==
1
,
'must assign output for addwrapper method'
)
% by default, activate CPU when adding a wrapper
% by default, activate CPU when adding a wrapper
if
nargin
==
4
,
isactive
=
true
;
end
if
nargin
==
4
,
isactive
=
true
;
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