scipy/scipy — pull request #4260 by blogle (2014-12-12 19:00:36+00:00)
Title: ENH: spatial: adds query_subset to KDTree

allows efficient search of nearest neighbors constrained to a subset of the data indices (#4236)