Skip to content

Commit

Permalink
DEBUG: check stream with fully specified name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborauer committed Aug 30, 2018
1 parent 595dee5 commit f1e69c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aa_engine/aas_stream_has_contents.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
streamname=aas_remapstreamname(aap,streamname,true);

% If this stream has source, it will be listed in the dependency maps
c = cellfun(@(x) strsplit(x,'.'), {aap.internal.inputstreamsources{aap.tasklist.currenttask.modulenumber}.stream.name},'UniformOutput',false);
% Test for both simple and fully specified names (if in the depenedency map)
c = cellfun(@(x) [{x} strsplit(x,'.')], {aap.internal.inputstreamsources{aap.tasklist.currenttask.modulenumber}.stream.name},'UniformOutput',false);

stream_has_contents=any(strcmp(streamname,horzcat(c{:})));

end

0 comments on commit f1e69c9

Please sign in to comment.