fa02c39fb590fa2baf2862755944678e6b379442,mahotas/tests/test_texture.py,,test_4d_image,#,176

Before Change



@raises(ValueError)
def test_4d_image():
    texture.haralick(np.arange(4**5).reshape((4,4,4,4,4)))


def rand_haralick():
    f = 255*np.random.random((128,128))

After Change


        texture.haralick(zeros, ignore_zeros=True)

def test_4d_image():
    with pytest.raises(ValueError):
        texture.haralick(np.arange(4**5).reshape((4,4,4,4,4)))


def rand_haralick():
    f = 255*np.random.random((128,128))
    f = f.astype(np.uint8)
    f = mh.features.haralick(f)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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_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_ignore_zeros_raise


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_negative_values_haralick