fa02c39fb590fa2baf2862755944678e6b379442,mahotas/tests/test_texture.py,,test_negative_values_haralick,#,223

Before Change


    // https://github.com/luispedro/mahotas/issues/72
    f = 255*np.random.random((16,16))
    f = f.astype(np.int8)
    mh.features.haralick(f)


def test_int8_positive_haralick():
    // https://github.com/luispedro/mahotas/issues/72

After Change


    // https://github.com/luispedro/mahotas/issues/72
    f = 255*np.random.random((16,16))
    f = f.astype(np.int8)
    with pytest.raises(ValueError):
        mh.features.haralick(f)


def test_int8_positive_haralick():
    // https://github.com/luispedro/mahotas/issues/72
    f = 64*np.random.random((16,16))
    f = f.astype(np.int8)
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_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


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_float_haralick