diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2024-11-16 15:21:34 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2024-11-16 15:21:34 -0500 |
| commit | ff9df68f3120ce7089dffb4ac00fe07854124a91 (patch) | |
| tree | 58ffbf0b82cd3939d7d88f285edbb5571ce4a1e0 | |
| parent | 6cb0ec7a2aac43b88018fea56285f1040742f10c (diff) | |
less bouncing
| -rw-r--r-- | dashboard_website/router.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard_website/router.py b/dashboard_website/router.py index 731362a..f720b4e 100644 --- a/dashboard_website/router.py +++ b/dashboard_website/router.py @@ -272,7 +272,7 @@ def __minimize_route_time_diff( # If the difference is greater than the time difference, move a coordinate from the longest route to the shortest route if time_difference > time_diff: # Move a coordinate from the longest route to the shortest route - for _ in range(max(1,int(time_difference/0.12))): # roughly estimate how many points must be moved to equalize + for _ in range(max(1,int(time_difference/0.25))): # roughly estimate how many points must be moved to equalize closest_coordinate = __find_closest_coordinates( routes[active_indices[sorted_indices[-1]]], __mean_center(routes[sorted_indices[0]]) )[0] |
