Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Bio/KDTree/KDTree.py   biopython(Download)
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    kdt.set_data(coords)
    neighbors = kdt.neighbor_search(radius)
    r = [neighbor.radius for neighbor in neighbors]
    coords = random((nr_points, dim))
    center = coords[0]
    kdt.set_data(coords)
    kdt.search_center_radius(center, radius)
    r = kdt.get_indices()

src/b/i/biopython-HEAD/Bio/KDTree/KDTree.py   biopython(Download)
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    kdt.set_data(coords)
    neighbors = kdt.neighbor_search(radius)
    r = [neighbor.radius for neighbor in neighbors]
    coords = random((nr_points, dim))
    center = coords[0]
    kdt.set_data(coords)
    kdt.search_center_radius(center, radius)
    r = kdt.get_indices()

src/p/r/ProDy-1.5.1/prody/kdtree/kdtree.py   ProDy(Download)
        if unitcell is None:
            self._kdtree = CKDTree(3, self._bucketsize)
            self._kdtree.set_data(coords)
        else:
            if not isinstance(unitcell, ndarray):
                raise TypeError('unitcell must be a Numpy array')
            if unitcell.shape != (3,):
                raise ValueError('unitcell.shape must be (3,)')
            self._kdtree = CKDTree(3, self._bucketsize)
            self._kdtree.set_data(coords)
                                          for rep in self._replicate])
                    kdtree = CKDTree(3, self._bucketsize)
                    kdtree.set_data(coords)
                    self._kdtree2 = kdtree
                n_atoms = len(self._coords)

src/p/r/ProDy-HEAD/prody/kdtree/kdtree.py   ProDy(Download)
        if unitcell is None:
            self._kdtree = CKDTree(3, self._bucketsize)
            self._kdtree.set_data(coords)
        else:
            if not isinstance(unitcell, ndarray):
                raise TypeError('unitcell must be a Numpy array')
            if unitcell.shape != (3,):
                raise ValueError('unitcell.shape must be (3,)')
            self._kdtree = CKDTree(3, self._bucketsize)
            self._kdtree.set_data(coords)
                                          for rep in self._replicate])
                    kdtree = CKDTree(3, self._bucketsize)
                    kdtree.set_data(coords)
                    self._kdtree2 = kdtree
                n_atoms = len(self._coords)