fa02c39fb590fa2baf2862755944678e6b379442,mahotas/tests/test_texture.py,,test_float_haralick,#,147

Before Change


def test_float_haralick():
    A = np.zeros((5,5), np.float32)
    A[2,2]=12
    texture.haralick(A)

def test_haralick3d():
    np.random.seed(22)
    img = mahotas.stretch(255*np.random.rand(20,20,4))

After Change


def test_float_haralick():
    A = np.zeros((5,5), np.float32)
    A[2,2]=12
    with pytest.raises(TypeError):
        texture.haralick(A)

def test_haralick3d():
    np.random.seed(22)
    img = mahotas.stretch(255*np.random.rand(20,20,4))
    features = texture.haralick(img)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: luispedro/mahotas
Commit Name: fa02c39fb590fa2baf2862755944678e6b379442
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_texture.py
Class Name:
Method Name: test_float_haralick


Project Name: luispedro/mahotas
Commit Name: fa02c39fb590fa2baf2862755944678e6b379442
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_texture.py
Class Name:
Method Name: test_4d_image


Project Name: luispedro/mahotas
Commit Name: fa02c39fb590fa2baf2862755944678e6b379442
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_texture.py
Class Name:
Method Name: test_negative_values_haralick


Project Name: luispedro/mahotas
Commit Name: fa02c39fb590fa2baf2862755944678e6b379442
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_texture.py
Class Name:
Method Name: test_ignore_zeros_raise