[SciPy-User] scipy.KDTree.query ball tree

Pauli Virtanen pav@iki...
Thu Oct 7 19:04:05 CDT 2010


Thu, 07 Oct 2010 16:51:53 -0700, Peter Tittmann wrote:
[clip]
> In [53]: test=spatial.KDTree.query_ball_tree(lasKDTree, 10.)

It's an instance method. You should call it as

>>> a = KDTree(points_a)
>>> b = KDTree(points_b)
>>> a.query_ball_tree(b, 10.)

-- 
Pauli Virtanen



More information about the SciPy-User mailing list