Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/c/e/CellProfiler-HEAD/cellprofiler/modules/tests/test_resize.py   CellProfiler(Download)
        expected[:,:,1] = j
        workspace, module = self.make_workspace(image, R.R_BY_FACTOR, 
                                                R.I_NEAREST_NEIGHBOR)
        module.resizing_factor.value = 3.0
        module.run(workspace)
        expected =  i
        workspace, module = self.make_workspace(image, R.R_BY_FACTOR, 
                                                R.I_NEAREST_NEIGHBOR)
        module.resizing_factor.value = 3.0
        module.run(workspace)
        expected = (np.mgrid[0:10,0:10][0].astype(float) * 29.0/9.0+.5).astype(int)
        workspace, module = self.make_workspace(image, R.R_BY_FACTOR, 
                                                R.I_NEAREST_NEIGHBOR)
        module.resizing_factor.value = 1.0/3.0
        module.run(workspace)