Open tholzmann opened 1 year ago
When reading some comments from this stackoverflow thread [1], I actually found out that it seems to be a Python 3.9 issue. The line 21 in neighbors/r_neighbors.py needs to be changed to:
return np.array(kdtree.query_ball_tree(kdtree, r), dtype=object)
so the argument dtype=object
needs to be added.
[1] https://stackoverflow.com/questions/10346336/list-of-lists-into-numpy-array/26224619#26224619
Describe the bug When running radius search on my point cloud, I get an error:
k-neighbor search works as expected.
To Reproduce My code to reproduce the bug:
cloud = PyntCloud.from_file(pc_path)
kdtree_id = cloud.add_structure("kdtree")
r_neighbors = cloud.get_neighbors( r=5, kdtree=kdtree_id)
Desktop (please complete the following information):