From 8b32f88a4fa43c6316f38e93f0de087888b5ce2d Mon Sep 17 00:00:00 2001 From: marqrazz Date: Mon, 15 Jul 2024 15:44:07 -0600 Subject: [PATCH] Fix nested parameter --- .../jinja_templates/python/update_runtime_parameter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/update_runtime_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/update_runtime_parameter index 195fb78..3374f0d 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/update_runtime_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/update_runtime_parameter @@ -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) %}