d626657a13f4a26242c57878ebefcd8d9b05e3c6,scipy/spatial/tests/test_kdtree.py,test_sparse_distance_matrix_compiled,setUp,#test_sparse_distance_matrix_compiled#,572

Before Change


        m = 4
        np.random.seed(0)
        self.T1 = cKDTree(np.random.randn(n,m),leafsize=2)
        self.T2 = cKDTree(np.random.randn(n,m),leafsize=2)
        self.r = 0.3

    def test_consistency_with_neighbors(self):
        M = self.T1.sparse_distance_matrix(self.T2, self.r)

After Change


        np.random.seed(0)
        data1 = np.random.randn(n,m)
        data2 = np.random.randn(n,m)
        self.T1 = cKDTree(data1,leafsize=2)
        self.T2 = cKDTree(data2,leafsize=2)
        
        self.ref_T1 = KDTree(data1, leafsize=2)
        self.ref_T2 = KDTree(data2, leafsize=2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: d626657a13f4a26242c57878ebefcd8d9b05e3c6
Time: 2013-07-08
Author: porebski.przemek@gmail.com
File Name: scipy/spatial/tests/test_kdtree.py
Class Name: test_sparse_distance_matrix_compiled
Method Name: setUp


Project Name: soft-matter/trackpy
Commit Name: 595b03eef21acae015342042bca7288bb9336463
Time: 2014-11-10
Author: daniel.b.allan@gmail.com
File Name: trackpy/motion.py
Class Name:
Method Name: proximity


Project Name: scikit-image/scikit-image
Commit Name: 08250ae50815b32f868041bc56a6e5a3eca4ef83
Time: 2019-12-17
Author: xwu@enthought.com
File Name: skimage/transform/hough_transform.py
Class Name:
Method Name: hough_circle_peaks