Skip to content
Snippets Groups Projects
Commit b947dc48 authored by Cyril Moineau's avatar Cyril Moineau Committed by Cyril Moineau
Browse files

Fix input idx issue when some inputs are not set.

parent d06ca8a5
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!144Fix aidge export
Pipeline #48867 passed
{%- for input in inputs if input[0] %}
{# NOTE: Trying a shorter notation like {%- for input in inputs if input[0] %}
will mess up loop.index as the input set up at None will not increment ! #}
{%- for input in inputs %}
{%- if input[0] %}
{{input[0]}}->addChild({{name}}, {{input[1]}}, {{loop.index - 1}}); {# NOTE: loop.index begin at 1 #}
{%- endif %}
{%- endfor %}
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