f67b777d2153821ee08e103232d95d8bc8b29332,tests/modules/test_resize.py,TestResize,test_03_01_bilinear,#TestResize#,222

Before Change


    def test_03_01_bilinear(self):
        i, j = numpy.mgrid[0:10, 0:10]
        image = i.astype(numpy.float32)
        expected = numpy.mgrid[0:30, 0:30][0].astype(numpy.float32) * 9.0 / 29.0
        workspace, module = self.make_workspace(image, cellprofiler.modules.resize.R_BY_FACTOR,
                                                cellprofiler.modules.resize.I_BILINEAR)
        module.resizing_factor.value = 3.0
        module.run(workspace)

After Change



    def test_03_01_bilinear(self):
        i, j = numpy.mgrid[0:10, 0:10]
        image = skimage.exposure.rescale_intensity(1.0 * i)
        expected = skimage.transform.resize(
            image,
            (30, 30),
            order=1,
            mode="symmetric"
        )
        workspace, module = self.make_workspace(
            image,
            cellprofiler.modules.resize.R_BY_FACTOR,
            cellprofiler.modules.resize.I_BILINEAR
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_03_01_bilinear


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_03_01_bilinear


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_02_03_third


Project Name: CellProfiler/CellProfiler
Commit Name: f67b777d2153821ee08e103232d95d8bc8b29332
Time: 2017-02-24
Author: mcquin@broadinstitute.org
File Name: tests/modules/test_resize.py
Class Name: TestResize
Method Name: test_04_04_reshape_using_another_images_dimensions