This commit is contained in:
Sabin Iacob
2017-05-27 19:52:21 -03:00
committed by Yorik van Havre
parent bed4255b0d
commit d0bad0a3fc
+1
View File
@@ -553,6 +553,7 @@ def sort_jobs(locations, keys, attractors=[]):
zero = defaultdict(lambda: 0)
out.append(find_closest(locations, zero, sqdist))
locations.remove(out[-1])
while locations:
closest = find_closest(locations, out[-1], sqdist)