Skip to content

Commit

Permalink
Merge branch 'feat/add_lanelet2_divider' of github.com:StepTurtle/aut…
Browse files Browse the repository at this point in the history
…oware_tools into feat/add_lanelet2_divider
  • Loading branch information
StepTurtle committed Nov 21, 2024
2 parents 3383834 + ae49921 commit 4389d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def __init__(self):
Debug.log("Grid Edge Size: %d" % self.grid_edge_size, DebugMessageType.INFO)

# Create copy of osm file
shutil.copy(self.input_lanelet2_map_path, self.input_lanelet2_map_path.replace(".osm", "_temp.osm"))
shutil.copy(
self.input_lanelet2_map_path, self.input_lanelet2_map_path.replace(".osm", "_temp.osm")
)
self.input_lanelet2_map_path = self.input_lanelet2_map_path.replace(".osm", "_temp.osm")

# Complete if missing "version" element in lanelet2_map.osm
Expand Down Expand Up @@ -64,7 +66,7 @@ def __init__(self):
xml_tool.complete_missing_elements(
self.input_lanelet2_map_path, os.path.join(self.output_folder_path, "lanelet2_map.osm")
)

# Remove temp osm file
os.remove(self.input_lanelet2_map_path)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def complete_missing_version_tag(input_osm_file_path: str):
if root_element != "version":
add_version = True
break

if add_version:
element.set("version", "1")

Expand Down

0 comments on commit 4389d6b

Please sign in to comment.