93663c2cc8c0c8bc3c6f28c27679707305948c80,tests/test_texture.py,,test_cooccurence,#,4

Before Change


    assert res[0,0] == 1
    assert res[0,1] == 2
    assert res[1,0] == 0
    assert res[1,1] == 3
    assert res[2,2] == 3
    assert not np.any(res[2,:2])
    assert not np.any(res[:2,2])
    res[:3,:3] = 0

After Change


    return res

def test_cooccurence():
    np.random.seed(222)
    f = np.random.rand(32, 32)
    f = (f * 255).astype(np.int32)

    assert np.all(mahotas.texture.cooccurence(f, 0) == brute_force(f, 0, 1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


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


Project Name: pymc-devs/pymc3
Commit Name: 68d5201292b45feecbfaf88a10aa8e392d5ab9f2
Time: 2020-11-23
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/tests/test_sampling.py
Class Name: TestSamplePPC
Method Name: test_deterministic_of_observed


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