f67b777d2153821ee08e103232d95d8bc8b29332,tests/modules/test_resize.py,TestResize,test_02_03_third,#TestResize#,210
Before Change
def test_02_03_third(self):
i, j = numpy.mgrid[0:30, 0:30]
image = i.astype(float)
expected = (numpy.mgrid[0:10, 0:10][0].astype(float) * 29.0 / 9.0 + .5).astype(int)
workspace, module = self.make_workspace(image, cellprofiler.modules.resize.R_BY_FACTOR,
cellprofiler.modules.resize.I_NEAREST_NEIGHBOR)
module.resizing_factor.value = 1.0 / 3.0
module.run(workspace)
After Change
def test_02_03_third(self):
i, j = numpy.mgrid[0:30, 0:30]
image = skimage.exposure.rescale_intensity(1.0 * i)
expected = skimage.transform.resize(
image,
(10, 10),
order=0,
mode="symmetric"
)
workspace, module = self.make_workspace(
image,
cellprofiler.modules.resize.R_BY_FACTOR,
cellprofiler.modules.resize.I_NEAREST_NEIGHBOR
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_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_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_01_reshape_double