Merge modifications for more separate backend functions #69
| @@ -10,7 +10,6 @@ from .refiner import Refiner | |||||||
| from ..structs.landmark import Landmark | from ..structs.landmark import Landmark | ||||||
| from ..structs.preferences import Preferences | from ..structs.preferences import Preferences | ||||||
| from ..structs.linked_landmarks import LinkedLandmarks | from ..structs.linked_landmarks import LinkedLandmarks | ||||||
| from ..utils.take_most_important import take_most_important |  | ||||||
| from ..structs.trip import Trip | from ..structs.trip import Trip | ||||||
| from ..overpass.overpass import fill_cache | from ..overpass.overpass import fill_cache | ||||||
| from ..cache import client as cache_client | from ..cache import client as cache_client | ||||||
| @@ -97,7 +96,7 @@ def optimize_trip( | |||||||
|             n_important = parameters['N_important'] |             n_important = parameters['N_important'] | ||||||
|  |  | ||||||
|     # Truncate to the  most important landmarks for a shorter list |     # Truncate to the  most important landmarks for a shorter list | ||||||
|     landmarks_short = take_most_important(landmarks, n_important) |     landmarks_short = landmarks[:n_important] | ||||||
|  |  | ||||||
|     # insert start and finish to the shorter landmarks list |     # insert start and finish to the shorter landmarks list | ||||||
|     landmarks_short.insert(0, start_landmark) |     landmarks_short.insert(0, start_landmark) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user