Skip to content
Snippets Groups Projects
Commit afc296c2 authored by Federico Felici's avatar Federico Felici
Browse files

Ensure user calls addalgo/addwrapper method with output

parent 5e8f7d7f
No related branches found
No related tags found
No related merge requests found
...@@ -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'));
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment