Skip to content

Commit

Permalink
add test for scipygh-20605
Browse files Browse the repository at this point in the history
  • Loading branch information
sturlamolden committed May 8, 2024
1 parent b16f6ed commit ea4f65e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scipy/spatial/tests/test_kdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,3 +1531,10 @@ def __array_finalize__(self, obj):
tree = incantation(points, 10)
tree.query(arr_like, 1)
tree.query_ball_point(arr_like, 200)


def test_gh_20605():
data = np.full((100, 2), 4)
data[:50, :] = 5
data[52:60, 1] = 8
balanced_tree = KDTree(data=data,balanced_tree=True)

0 comments on commit ea4f65e

Please sign in to comment.