try:  # older scipy versions
            tree = cKDTree(
                np.random.random((self.npoints, 3)) * box, boxsize=_box[:6])