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_maskobjects.py   CellProfiler(Download)
        self.assertEqual(len(columns), 6)
        for expected in (
            (cpmeas.IMAGE, M.I.FF_COUNT % OUTPUT_OBJECTS, cpmeas.COLTYPE_INTEGER),
            (OUTPUT_OBJECTS, M.I.M_LOCATION_CENTER_X, cpmeas.COLTYPE_FLOAT),
            (OUTPUT_OBJECTS, M.I.M_LOCATION_CENTER_Y, cpmeas.COLTYPE_FLOAT),
        m = workspace.measurements
        self.assertTrue(isinstance(m, cpmeas.Measurements))
        value = m.get_current_image_measurement(M.I.FF_COUNT % OUTPUT_OBJECTS)
        self.assertEqual(value, 0)
        for object_name, feature in (
        m = workspace.measurements
        self.assertTrue(isinstance(m, cpmeas.Measurements))
        value = m.get_current_image_measurement(M.I.FF_COUNT % OUTPUT_OBJECTS)
        self.assertEqual(value, 2)
 
        m = workspace.measurements
        self.assertTrue(isinstance(m, cpmeas.Measurements))
        value = m.get_current_image_measurement(M.I.FF_COUNT % OUTPUT_OBJECTS)
        self.assertEqual(value, 2)
 
        m = workspace.measurements
        self.assertTrue(isinstance(m, cpmeas.Measurements))
        value = m.get_current_image_measurement(M.I.FF_COUNT % OUTPUT_OBJECTS)
        self.assertEqual(value, 2)