Skip to content

Accessing parameter units in reports? #3526

Answered by SchrodingersGat
miggland asked this question in Q&A
Discussion options

You must be logged in to vote

I think something like the following should work:

{% for param in part.parameters %}
{{ param.template.name }} : {{ param.data }} {{ param.template.units }}
{% endfor %}

Note here that you're using part.parameters to directly access the parameters, not the top-level parameters object which returns the simplified dict object.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@matmair
Comment options

@miggland
Comment options

miggland Aug 15, 2022
Collaborator Author

@SchrodingersGat
Comment options

@miggland
Comment options

miggland Aug 15, 2022
Collaborator Author

Answer selected by miggland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants