yt.utilities.lib.cykdtree package

Submodules

Module contents

yt.utilities.lib.cykdtree.make_tree(pts, **kwargs)[source]

Build a KD-tree for a set of points.

Parameters:
  • pts (np.ndarray of float64) – (n,m) Array of n mD points.

  • **kwargs – Additional keyword arguments are passed to the appropriate class for constructuing the tree.

Returns:

KDTree object.

Return type:

T (cykdtree.PyKDTree)

Raises:

ValueError – If pts is not a 2D array.