Commit db6e3c93 authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH

[js][alg] template now also displays results if alg is analyzer, #118

parent 4711be1b
......@@ -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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment