faa3108a4d41d8c5ea204f7f93a6d6d1a9b5d4ce,scipy/spatial/tests/test_kdtree.py,,test_ckdtree_box,#,927

Before Change


    dd, ii = kdtree.query(data, self.k)

    dd1, ii1 = kdtree.query(data + 1.0, self.k)
    assert_almost_equal(dd, dd1)
    assert_equal(ii, ii1)

    dd1, ii1 = kdtree.query(data - 1.0, self.k)
    assert_almost_equal(dd, dd1)

After Change



    dd, ii = kdtree.query(data, self.k)

    try:
        dd, ii = kdtree.query(data + 1.0, self.k)
        raise AssertionError("ValueError is not raised")
    except ValueError:
        pass

    try:
        dd, ii = kdtree.query(data - 1.0, self.k)
        raise AssertionError("ValueError is not raised")
    except ValueError:
        pass

    dd2, ii2 = simulate_periodic_box(kdtree2, data, self.k, boxsize=1.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: faa3108a4d41d8c5ea204f7f93a6d6d1a9b5d4ce
Time: 2015-08-01
Author: yfeng1@waterfall.dyn.berkeley.edu
File Name: scipy/spatial/tests/test_kdtree.py
Class Name:
Method Name: test_ckdtree_box


Project Name: brian-team/brian2
Commit Name: ed06699702f6a661542761bf599de74ab102764c
Time: 2014-06-04
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_network.py
Class Name:
Method Name: test_invalid_magic_network


Project Name: soft-matter/trackpy
Commit Name: 22c8e467fce55e8dd5c2a3b5363ea7fc7ef26bfb
Time: 2018-01-23
Author: caspervdw@gmail.com
File Name: trackpy/tests/test_reproducibility.py
Class Name: TestReproducibility
Method Name: test_characterize