diff --git a/beat/editor/templates/algorithm.jinja2 b/beat/editor/templates/algorithm.jinja2 index dd2cb4ad3885175a8a847625a3c5c003d00f62df..39e9b89961c295db0ada85c3390633cc9aa6b433 100644 --- a/beat/editor/templates/algorithm.jinja2 +++ b/beat/editor/templates/algorithm.jinja2 @@ -21,11 +21,13 @@ class Algorithm: # this will be called each time the sync'd input has more data available to be processed def process(self, inputs, outputs): # Groups available: - {% for group in contents.groups %}# Group {{ loop.index }}: + {% for group in contents.groups %}# Group {{ loop.index - 1 }}: {% for iName, input in group.inputs.items() %}# Input "{{ iName }}" with type "{{ input.type }}" {% endfor %}{% if 'outputs' in group %}{% for oName, output in group.outputs.items() %}# Output "{{ oName }}" with type "{{ output.type }}" - {% endfor %}{% endif %}{% endfor %} - + {% endfor %}{% endif %}{% endfor %}{% if 'splittable' not in contents %} + # Results available: + {% for rName, result in contents.results.items() %}# Result "{{ rName }}" with type "{{ result.type }}" + {% endfor %}{% endif %} # to check if there is more data waiting in the inputs # (if it is False, you have processed all the inputs and this "process" function won't be called again): # if inputs.hasMoreData():