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_flipandrotate.py   CellProfiler(Download)
        def fn(module):
            self.assertTrue(isinstance(module, F.FlipAndRotate))
            module.flip_choice.value = F.FLIP_LEFT_TO_RIGHT
            module.rotate_choice.value = F.ROTATE_NONE
        output_image, angle = self.run_module(image, mask=mask, fn=fn)
        def fn(module):
            self.assertTrue(isinstance(module, F.FlipAndRotate))
            module.flip_choice.value = F.FLIP_TOP_TO_BOTTOM
            module.rotate_choice.value = F.ROTATE_NONE
        output_image, angle = self.run_module(image, mask=mask, fn=fn)
        def fn(module):
            self.assertTrue(isinstance(module, F.FlipAndRotate))
            module.flip_choice.value = F.FLIP_BOTH
            module.rotate_choice.value = F.ROTATE_NONE
        output_image, angle = self.run_module(image, mask=mask, fn=fn)