You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.`
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:
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):
The text was updated successfully, but these errors were encountered: