From 0095985be2c486951723ec60199edd10f1fff31b Mon Sep 17 00:00:00 2001 From: Kotochleb Date: Tue, 19 Mar 2024 12:35:18 +0000 Subject: [PATCH] Fix map generation for python Signed-off-by: Kotochleb --- .../jinja_templates/python/declare_runtime_parameter | 2 +- .../jinja_templates/python/update_runtime_parameter | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/declare_runtime_parameter b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/declare_runtime_parameter index 117fa1b..0ba04a0 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/declare_runtime_parameter +++ b/generate_parameter_library_py/generate_parameter_library_py/jinja_templates/python/declare_runtime_parameter @@ -1,6 +1,6 @@ {% for mapped_param in mapped_params -%} {%- filter indent(width=4*loop.index0) %} -for value_{{loop.index}} in updated_params.{{mapped_param}}: +for value_{{loop.index}} in updated_params.{{struct_name}}{% for map in parameter_map%}{% endfor %}.{{mapped_param}}: {%- endfilter -%} {% endfor -%} {%- filter indent(width=4*(mapped_params|length)) %} 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 231a3c4..5f5f168 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 @@ -1,6 +1,6 @@ {% for mapped_param in mapped_params -%} {%- filter indent(width=4*loop.index) %} -for value_{{loop.index}} in updated_params.{{mapped_param}}: +for value_{{loop.index}} in updated_params.{{struct_name}}{% for map in parameter_map%}{% endfor %}.{{mapped_param}}: {%- endfilter -%} {% endfor -%} {%- filter indent(width=4*(1+mapped_params|length)) %}