-
Notifications
You must be signed in to change notification settings - Fork 228
Description
Describe the bug
When running radius search on my point cloud, I get an error:
File "D:\repos\scripts\venv\lib\site-packages\pyntcloud\core_class.py", line 590, in get_neighbors
return r_neighbors(kdtree, r)
File "D:\repos\scripts\venv\lib\site-packages\pyntcloud\neighbors\r_neighbors.py", line 21, in r_neighbors
return np.array(kdtree.query_ball_tree(kdtree, r))
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5342,) + inhomogeneous part.`
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):
- OS: Win 10
- pyntcloud: 0.3.1
- python 3.9