Skip to content

Commit eabb09e

Browse files
committed
Pleasing linter
1 parent d0c4180 commit eabb09e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python-pyvrp-routing/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ def solve(self, input: nextmv.Input, duration: int) -> nextmv.Output:
5454
speeds = [v["speed"] if "speed" in v else 1 for v in vehicles]
5555

5656
# Determine which matrix to use for travel costs.
57-
# Input matrix layout: [stop_0, ..., stop_{n-1}, v0_start, v0_end, v1_start, v1_end, ...]
58-
# PyVRP location layout: [v0_start_depot, v0_end_depot, v1_start_depot, v1_end_depot, ..., client_0, ..., client_{n-1}]
57+
# Input matrix layout:
58+
# [stop_0, ..., stop_{n-1}, v0_start, v0_end, v1_start, v1_end, ...]
59+
# PyVRP location layout:
60+
# [v0_start_depot, v0_end_depot, v1_start_depot, v1_end_depot, ..., client_0, ..., client_{n-1}]
5961
# We need to map between these two orderings.
6062
use_duration_matrix = "duration_matrix" in input.data
6163
if use_duration_matrix:

0 commit comments

Comments
 (0)