Skip to content

Commit

Permalink
ENH: add __all__ dicts to kdtree and ckdtree in spatial.
Browse files Browse the repository at this point in the history
This cleans up the spatial namespace quite a bit.
  • Loading branch information
rgommers committed Mar 10, 2011
1 parent 3dcb8a4 commit 4fd7424
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
22 changes: 20 additions & 2 deletions scipy/spatial/ckdtree.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scipy/spatial/ckdtree.pyx
Expand Up @@ -8,7 +8,7 @@ import kdtree

cdef double infinity = np.inf


__all__ = ['cKDTree']


# priority queue
Expand Down
5 changes: 5 additions & 0 deletions scipy/spatial/kdtree.py
Expand Up @@ -5,6 +5,11 @@
from heapq import heappush, heappop
import scipy.sparse

__all__ = ['minkowski_distance_p', 'minkowski_distance',
'distance_matrix',
'Rectangle', 'KDTree']


def minkowski_distance_p(x,y,p=2):
"""Compute the pth power of the L**p distance between x and y
Expand Down

0 comments on commit 4fd7424

Please sign in to comment.