From 8c8b4c69e71273ae5c70083efc459db39769e389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 27 Dec 2024 17:02:44 +0100 Subject: [PATCH] add explicit float --- 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 bbd4d6af..5428c9da 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -262,7 +262,7 @@ class Locator: # create 2d array with x, y, z, distance as rows np_ranges = np.hstack(( relevant_xyz, - np.array(tuple(scan_data[i].distance for i in peer_ids)).reshape((-1, 1)), + np.array(tuple(float(scan_data[i].distance) for i in peer_ids)).reshape((-1, 1)), )) #print(np_ranges)