From 3b2f47f63785b489a8fb5986191ecd8f2c0ec2f3 Mon Sep 17 00:00:00 2001 From: Hiroki OTA Date: Wed, 8 May 2024 12:03:31 +0900 Subject: [PATCH 1/2] Update utils.py --- .../planning_debug_tools/scripts/perception_replayer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/planning_debug_tools/scripts/perception_replayer/utils.py b/planning/planning_debug_tools/scripts/perception_replayer/utils.py index 5ded8d2ea409c..7e8e0a18b4b7c 100644 --- a/planning/planning_debug_tools/scripts/perception_replayer/utils.py +++ b/planning/planning_debug_tools/scripts/perception_replayer/utils.py @@ -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] From d8a02d8e7c11e7a5ecd179d45e9d05e4d45cf8b8 Mon Sep 17 00:00:00 2001 From: Hiroki OTA Date: Wed, 8 May 2024 12:04:47 +0900 Subject: [PATCH 2/2] Update dump.py --- system/diagnostic_graph_aggregator/script/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/diagnostic_graph_aggregator/script/dump.py b/system/diagnostic_graph_aggregator/script/dump.py index 9abcaeb7a080c..a647b2677b160 100755 --- a/system/diagnostic_graph_aggregator/script/dump.py +++ b/system/diagnostic_graph_aggregator/script/dump.py @@ -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} |")