ecf62ac20ef561df4265c3d1abd8c59b1e73895f,tests/modules/test_threshold.py,,test_threshold_otsu_volume,#,869

Before Change



    t_min = 0.7 * t_global_expected

    t_max = min(1.0, 1.5 * t_global_expected)

    t_local_expected[t_local_expected < t_min] = t_min

    t_local_expected[t_local_expected > t_max] = t_max

    numpy.testing.assert_almost_equal(t_global, t_global_expected)

    numpy.testing.assert_array_almost_equal(t_local, t_local_expected)

After Change


        t_local_expected[index] = module._get_adaptive_threshold(plane,
                                                                 skimage.filters.threshold_otsu)

    t_local_expected = module._correct_local_threshold(t_local_expected, t_guide_expected)

    numpy.testing.assert_almost_equal(t_guide, t_guide_expected)

    numpy.testing.assert_array_almost_equal(t_local, t_local_expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: ecf62ac20ef561df4265c3d1abd8c59b1e73895f
Time: 2020-06-11
Author: dstirling@broadinstitute.org
File Name: tests/modules/test_threshold.py
Class Name:
Method Name: test_threshold_otsu_volume


Project Name: CellProfiler/CellProfiler
Commit Name: ecf62ac20ef561df4265c3d1abd8c59b1e73895f
Time: 2020-06-11
Author: dstirling@broadinstitute.org
File Name: tests/modules/test_threshold.py
Class Name:
Method Name: test_threshold_otsu_image


Project Name: CellProfiler/CellProfiler
Commit Name: ecf62ac20ef561df4265c3d1abd8c59b1e73895f
Time: 2020-06-11
Author: dstirling@broadinstitute.org
File Name: tests/modules/test_threshold.py
Class Name:
Method Name: test_threshold_otsu3_volume