289ae46ae4b3e1abbf135e204c62908aeadc7d85,scipy/spatial/tests/test_kdtree.py,Test_vectorization,test_vectorized_query_all_neighbors,#Test_vectorization#,216
Before Change
assert_(isinstance(i, list))
def test_vectorized_query_all_neighbors(self):
d, i = self.kdtree.query(np.zeros((2, 4, 3)), k=None, distance_upper_bound=1.1)
assert_equal(np.shape(d), (2, 4))
assert_equal(np.shape(i), (2, 4))
After Change
def test_vectorized_query_all_neighbors(self):
query_shape = (2, 4)
r = 1.1
np.random.seed(1234)
points = np.random.rand(*query_shape, self.kdtree.m)
d, i = self.kdtree.query(points, k=None, distance_upper_bound=r)
assert_equal(np.shape(d), query_shape)
assert_equal(np.shape(i), query_shape)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: scipy/scipy
Commit Name: 289ae46ae4b3e1abbf135e204c62908aeadc7d85
Time: 2020-07-07
Author: peterbell10@live.co.uk
File Name: scipy/spatial/tests/test_kdtree.py
Class Name: Test_vectorization
Method Name: test_vectorized_query_all_neighbors
Project Name: rodluger/starry
Commit Name: 141903a21846d54aaf09aa95a3bcdd8b673ee116
Time: 2019-02-05
Author: rodluger@gmail.com
File Name: scripts/exoplanet_example.py
Class Name:
Method Name:
Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence