Skip to content

Commit

Permalink
FIX: executed to state key for exporter py
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 authored Nov 29, 2024
1 parent 1d2ad67 commit 1ba7928
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/pypi/ACPy/ac_acim.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ def add_timber(self, guid):
timber_et = ET.SubElement(self._root, "timber")
timber_et.set("id", guid)
self._timber_ets[guid] = timber_et
timber_executed_et = ET.SubElement(timber_et, "executed")
timber_executed_et.text = str(__ACIM_STATE__[0])
timber_state_et = ET.SubElement(timber_et, "state")
timber_state_et.text = str(__ACIM_STATE__[0])
timber_current_et = ET.SubElement(timber_et, "current")
timber_current_et.text = "__NOT_SET__"

def add_timber_state(self, guid, state_value):
""" Add the execution state of the object, by default False """
executed_et = ET.SubElement(self._timber_ets[guid], "executed")
executed_et.text = str(__ACIM_STATE__[state_value])
state_et = ET.SubElement(self._timber_ets[guid], "state")
state_et.text = str(__ACIM_STATE__[state_value])

def add_bbox(self, guid, corners):
"""
Expand Down Expand Up @@ -182,4 +182,4 @@ def _prettify(self, elem, level=0):
elem.tail = i
else:
if level and (not elem.tail or not elem.tail.strip()):
elem.tail = i
elem.tail = i

0 comments on commit 1ba7928

Please sign in to comment.