add explicit float

This commit is contained in:
Laura Klünder 2024-12-27 17:02:44 +01:00
parent 8b0c472d28
commit 8c8b4c69e7

View file

@ -262,7 +262,7 @@ class Locator:
# create 2d array with x, y, z, distance as rows # create 2d array with x, y, z, distance as rows
np_ranges = np.hstack(( np_ranges = np.hstack((
relevant_xyz, 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) #print(np_ranges)