Skip to content

Commit

Permalink
Set the angle unit based on cli arg
Browse files Browse the repository at this point in the history
  • Loading branch information
argenos committed Aug 22, 2024
1 parent 0faf0df commit f016824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/floorplan_dsl/generators/fpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def jsonld_floorplan_generator(
# Prepare context dictionary
context = dict(trim_blocks=True, lstrip_blocks=True)
context["model"] = model
context["angle_unit"] = angle_unit

this_folder = os.path.dirname(__file__)
# If given a directory instead of a single template, textX-Jinja copies the entire file/folder tree to the output folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ coord-{{ pose.name }}

{% block units %}
[
"M",
"degrees"
"M",
"{{ angle_unit | upper }}"
],
{% endblock %}

Expand Down

0 comments on commit f016824

Please sign in to comment.