Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 21, 2024
1 parent bbb88cb commit ae49921
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 ae49921

Please sign in to comment.