e1f4872fec77fe3d24ba883f9bbd96d77e417dce,skimage/morphology/tests/test_extrema.py,TestExtrema,test_h_maxima_float_h,#TestExtrema#,193

Before Change



        h_vals = np.linspace(1.0, 2.0, 100)
        failures = 0
        for i in range(h_vals.size):
            maxima = extrema.h_maxima(data, h_vals[i])

            if (maxima[2, 2] == 0):
                failures += 1

        assert (failures == 0)

    def test_h_maxima_large_h(self):
        test that h-maxima works correctly for large h

After Change



        for h in h_vals:
            if h % 1 != 0:
                msgs = ["possible precision loss converting image"]
            else:
                msgs = []

            with expected_warnings(msgs):
                maxima = extrema.h_maxima(data, h)

            if (maxima[2, 2] == 0):
                failures += 1

        assert (failures == 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: e1f4872fec77fe3d24ba883f9bbd96d77e417dce
Time: 2020-07-11
Author: grlee77@gmail.com
File Name: skimage/morphology/tests/test_extrema.py
Class Name: TestExtrema
Method Name: test_h_maxima_float_h


Project Name: scikit-image/scikit-image
Commit Name: 44c62ab344e2a226c820403b09e2645e7257d0b3
Time: 2017-09-23
Author: jsch@demuc.de
File Name: skimage/transform/tests/test_pyramids.py
Class Name:
Method Name: test_build_gaussian_pyramid_nd


Project Name: scikit-image/scikit-image
Commit Name: e1f4872fec77fe3d24ba883f9bbd96d77e417dce
Time: 2020-07-11
Author: grlee77@gmail.com
File Name: skimage/morphology/tests/test_extrema.py
Class Name: TestExtrema
Method Name: test_h_minima_float_h


Project Name: scikit-image/scikit-image
Commit Name: 44c62ab344e2a226c820403b09e2645e7257d0b3
Time: 2017-09-23
Author: jsch@demuc.de
File Name: skimage/transform/tests/test_pyramids.py
Class Name:
Method Name: test_build_laplacian_pyramid_nd