f67b777d2153821ee08e103232d95d8bc8b29332,tests/modules/test_resize.py,TestResize,test_04_04_reshape_using_another_images_dimensions,#TestResize#,304

Before Change


        """"Resize to another image"s dimensions"""
        i, j = numpy.mgrid[0:10, 0:19].astype(float)
        image = i + j
        i, j = numpy.mgrid[0:19, 0:10].astype(float)
        expected = i + j
        workspace, module = self.make_workspace(image, cellprofiler.modules.resize.R_TO_SIZE,
                                                cellprofiler.modules.resize.I_BILINEAR)
        module.use_manual_or_image.value = cellprofiler.modules.resize.C_IMAGE

After Change


    def test_04_04_reshape_using_another_images_dimensions(self):
        """"Resize to another image"s dimensions"""
        i, j = numpy.mgrid[0:10, 0:19].astype(float)
        image = skimage.exposure.rescale_intensity(1.0 * i + j)
        expected = skimage.transform.resize(
            image,
            (19, 10),
            order=1,
            mode="symmetric"
        )
        workspace, module = self.make_workspace(
            image,
            cellprofiler.modules.resize.R_TO_SIZE,
            cellprofiler.modules.resize.I_BILINEAR
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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_04_04_reshape_using_another_images_dimensions


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_03_reshape_half_and_double


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_01_reshape_double


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_02_reshape_half


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