dd146de9ff9a3adbea8404dde409493f7d6819ae,cellprofiler/modules/tests/test_identifyprimaryobjects.py,test_IdentifyPrimaryObjects,test_09_02_mog_fly,#test_IdentifyPrimaryObjects#,1624

Before Change


    def test_09_02_mog_fly(self):
        Test mixture of gaussians thresholding on the fly image
        image = fly_image()
        x = ID.IdentifyPrimAutomatic()
        x.threshold_method.value = T.TM_MOG_GLOBAL
        x.object_fraction.value = "0.10"
        local_threshold,threshold = x.get_threshold(image, np.ones(image.shape,bool),None,None)
        self.assertTrue(threshold > 0.036)

After Change


    def test_09_02_mog_fly(self):
        Test mixture of gaussians thresholding on the fly image
        image = fly_image()
        workspace, x = self.make_workspace(image)
        x.threshold_method.value = T.TM_MOG
        x.threshold_scope.value = I.TS_GLOBAL
        x.object_fraction.value = "0.10"
        local_threshold,threshold = x.get_threshold(
            image, np.ones(image.shape,bool), workspace)
        self.assertTrue(threshold > 0.036)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: dd146de9ff9a3adbea8404dde409493f7d6819ae
Time: 2013-02-28
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_identifyprimaryobjects.py
Class Name: test_IdentifyPrimaryObjects
Method Name: test_09_02_mog_fly


Project Name: CellProfiler/CellProfiler
Commit Name: dd146de9ff9a3adbea8404dde409493f7d6819ae
Time: 2013-02-28
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_identifyprimaryobjects.py
Class Name: test_IdentifyPrimaryObjects
Method Name: test_09_02_mog_fly


Project Name: CellProfiler/CellProfiler
Commit Name: dd146de9ff9a3adbea8404dde409493f7d6819ae
Time: 2013-02-28
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_identifyprimaryobjects.py
Class Name: test_IdentifyPrimaryObjects
Method Name: test_10_03_test_background_mog


Project Name: CellProfiler/CellProfiler
Commit Name: dd146de9ff9a3adbea8404dde409493f7d6819ae
Time: 2013-02-28
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_identifyprimaryobjects.py
Class Name: test_IdentifyPrimaryObjects
Method Name: test_10_02_test_background_fly


Project Name: CellProfiler/CellProfiler
Commit Name: dd146de9ff9a3adbea8404dde409493f7d6819ae
Time: 2013-02-28
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_identifyprimaryobjects.py
Class Name: test_IdentifyPrimaryObjects
Method Name: test_08_01_per_object_otsu