[SciPy-User] Fwd: KDTree IndexError

Ralf Gommers ralf.gommers@googlemail....
Sat Jul 21 15:00:03 CDT 2012


On Sat, Jul 21, 2012 at 12:19 AM, Oleksandr Huziy <guziy.sasha@gmail.com>wrote:

> Hi,
>
> the kdtree implementation uses recursion, and the standard limit of the
> recursion depth in python is 1000.
>
> For some of your data you need more than 1000 (for the bad data).
>
> When I put
>
> import sys
>
> sys.setrecursionlimit(10000)
>
> your bad data script works OK. Probably it would work with less...
>
>
Should we put that in the Notes section of the KDTree docstring?

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120721/af40115e/attachment.html 


More information about the SciPy-User mailing list