From 2063b715e7b571fad5d11298499c100f8e6f808e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 27 Dec 2024 02:14:48 +0100 Subject: [PATCH] fix fixxfix --- src/c3nav/routing/locator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 525d4507..4b5c5729 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -384,6 +384,8 @@ class LocatorSpace: levels = np.full((len(points), len(peers)), fill_value=no_signal, dtype=np.int64) for i, point in enumerate(points): for peer_id, value in point.values.items(): + if value.rssi is None: + continue # todo: ibeaconrange levels[i][peer_lookup[peer_id]] = int(value.rssi)**2 return cls(