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

All Samples(14)  |  Call(12)  |  Derive(0)  |  Import(2)

src/p/r/ProDy-1.5.1/prody/kdtree/kdtree.py   ProDy(Download)
except ImportError:
    try:
        from Bio.KDTree._CKDTree import KDTree as CKDTree
    except ImportError:
        raise ImportError('CKDTree module could not be imported. '
        self._neighbors = None
        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)
                    coords = concatenate([coords + rep
                                          for rep in self._replicate])
                    kdtree = CKDTree(3, self._bucketsize)
                    kdtree.set_data(coords)
                    self._kdtree2 = kdtree

src/p/r/ProDy-HEAD/prody/kdtree/kdtree.py   ProDy(Download)
except ImportError:
    try:
        from Bio.KDTree._CKDTree import KDTree as CKDTree
    except ImportError:
        raise ImportError('CKDTree module could not be imported. '
        self._neighbors = None
        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)
                    coords = concatenate([coords + rep
                                          for rep in self._replicate])
                    kdtree = CKDTree(3, self._bucketsize)
                    kdtree.set_data(coords)
                    self._kdtree2 = kdtree

src/b/i/biopython-1.63/Bio/KDTree/KDTree.py   biopython(Download)
    """
    # KD tree search
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    kdt.set_data(coords)
    """
    # kd tree search
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    center = coords[0]
    def __init__(self, dim, bucket_size=1):
        self.dim = dim
        self.kdt = _CKDTree.KDTree(dim, bucket_size)
        self.built = 0
 

src/b/i/biopython-HEAD/Bio/KDTree/KDTree.py   biopython(Download)
    """
    # KD tree search
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    kdt.set_data(coords)
    """
    # kd tree search
    kdt = _CKDTree.KDTree(dim, bucket_size)
    coords = random((nr_points, dim))
    center = coords[0]
    def __init__(self, dim, bucket_size=1):
        self.dim = dim
        self.kdt = _CKDTree.KDTree(dim, bucket_size)
        self.built = 0