yt.utilities.lib.cykdtree package¶
Submodules¶
- yt.utilities.lib.cykdtree.kdtree module
PyKDTree
PyKDTree.npts
PyKDTree.ndim
PyKDTree.data_version
PyKDTree.num_leaves
PyKDTree.leafsize
PyKDTree.leaves
PyKDTree.idx
PyKDTree.left_edge
PyKDTree.right_edge
PyKDTree.domain_width
PyKDTree.periodic
PyKDTree.assert_equal()
PyKDTree.consolidate_edges()
PyKDTree.data_version
PyKDTree.domain_width
PyKDTree.from_file()
PyKDTree.get()
PyKDTree.get_neighbor_ids()
PyKDTree.idx
PyKDTree.leaf_idx()
PyKDTree.leafsize
PyKDTree.leaves
PyKDTree.left_edge
PyKDTree.ndim
PyKDTree.npts
PyKDTree.num_leaves
PyKDTree.periodic
PyKDTree.right_edge
PyKDTree.save()
PyNode
PyNode.npts
PyNode.ndim
PyNode.num_leaves
PyNode.start_idx
PyNode.stop_idx
PyNode.left_edge
PyNode.right_edge
PyNode.periodic_left
PyNode.periodic_right
PyNode.domain_width
PyNode.left_neighbors
PyNode.right_neighbors
PyNode.assert_equal()
PyNode.domain_width
PyNode.id
PyNode.left_edge
PyNode.left_neighbors
PyNode.ndim
PyNode.neighbors
PyNode.npts
PyNode.num_leaves
PyNode.periodic_left
PyNode.periodic_right
PyNode.right_edge
PyNode.right_neighbors
PyNode.slice
PyNode.start_idx
PyNode.stop_idx
- yt.utilities.lib.cykdtree.plot module
- yt.utilities.lib.cykdtree.utils module
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.