Skip to content

Commit

Permalink
Fix nested parameter in Python template (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarqRazz authored Aug 16, 2024
1 parent c798ce9 commit e7909a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ for value_{{loop.index}} in updated_params.{{mapped_param}}:
{% endfor -%}
{%- filter indent(width=4*(1+mapped_params|length)) %}
{% if struct_name != "" %}
param_name = f"{self.prefix_}{{struct_name}}{% for map in parameter_map%}{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
param_name = f"{self.prefix_}{{struct_name}}{% for map in parameter_map%}.{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
{% else %}
param_name = f"{self.prefix_}{% for map in parameter_map%}{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
param_name = f"{self.prefix_}{% for map in parameter_map%}.{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
{% endif -%}
if param.name == param_name:
{%- filter indent(width=4) %}
Expand Down

0 comments on commit e7909a0

Please sign in to comment.