From dd0da6d8d830e4b80930937f0336027a3704b121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 26 Dec 2017 15:33:14 +0100 Subject: [PATCH] hopefully this helps --- src/c3nav/routing/locator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 7137c955..87381346 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -147,7 +147,7 @@ class LocatorSpace: ) if not acceptable_points: return None, None - scores = np.sum((self.levels[np.array(acceptable_points).reshape((-1, 1)), + scores = np.sum((self.levels[np.array(acceptable_points, dtype=np.uint32).reshape((-1, 1)), stations]-values)**2, axis=1) / len(stations) best_point = acceptable_points[np.argmin(scores).ravel()[0]]