From 58a50adba10218e3ccdb65d75479b8b0cd74fa87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 26 Dec 2019 18:13:58 +0100 Subject: [PATCH] hotfix to deal with stations that are still being put up --- src/c3nav/routing/locator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index f4746a54..88440a28 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -144,8 +144,12 @@ class LocatorSpace: values = np.array(tuple(scan_values[station_id] for station_id in station_ids), dtype=np.int64) # acceptable points need to have a value for the needed_station_id + # points = tuple( + # np.argwhere(self.levels[:, self.stations_lookup[needed_station_id]] < self.no_signal).ravel() + # ) + # temporary: don't filter these points by needed station id! the noc is still having fun deploying new stationg points = tuple( - np.argwhere(self.levels[:, self.stations_lookup[needed_station_id]] < self.no_signal).ravel() + np.argwhere(self.levels[:, self.stations_lookup[needed_station_id]] > 0).ravel() ) if not points: return None, None