Skip to content

Commit

Permalink
Merge pull request #1287 from tier4/h-ohta-patch-1
Browse files Browse the repository at this point in the history
fix: fix pre-commit
  • Loading branch information
ito-san authored May 8, 2024
2 parents 6bbb1cc + d8a02d8 commit ec7e474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def toc(self, name):
time.perf_counter() - self.start_times[name]
) * 1000 # Convert to milliseconds
if self.verbose:
print(f"Time for {name}: {elapsed_time:.2f} ms")
print(f"Time for {name}: {elapsed_time: .2f} ms")

# Reset the starting time for the name
del self.start_times[name]
2 changes: 1 addition & 1 deletion system/diagnostic_graph_aggregator/script/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def print_table(lines: list, header: list):
lines.insert(0, ["-" * w for w in widths])
lines.insert(2, ["-" * w for w in widths])
for line in lines:
line = map(lambda v, w: f"{v:{w}}", line, widths)
line = map(lambda v, w: f"{v: {w}}", line, widths)
line = " | ".join(line)
print(f"| {line} |")

Expand Down

0 comments on commit ec7e474

Please sign in to comment.