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)
            (OUTPUT_OBJECTS, M.I.FF_PARENT % INPUT_OBJECTS, cpmeas.COLTYPE_INTEGER),
            (OUTPUT_OBJECTS, M.I.M_NUMBER_OBJECT_NUMBER, cpmeas.COLTYPE_INTEGER),
            (INPUT_OBJECTS, M.I.FF_CHILDREN_COUNT % OUTPUT_OBJECTS, cpmeas.COLTYPE_INTEGER)):
            self.assertTrue(any([all([c in e for c,e in zip(column, expected)])
                                 for column in columns]))
            (OUTPUT_OBJECTS, M.I.M_NUMBER_OBJECT_NUMBER),
            (OUTPUT_OBJECTS, M.I.FF_PARENT % INPUT_OBJECTS),
            (INPUT_OBJECTS, M.I.FF_CHILDREN_COUNT % OUTPUT_OBJECTS)):
            data = m.get_current_measurement(object_name, feature)
            self.assertEqual(len(data), 0)
            (OUTPUT_OBJECTS, M.I.M_NUMBER_OBJECT_NUMBER, np.array([1, 2])),
            (OUTPUT_OBJECTS, M.I.FF_PARENT % INPUT_OBJECTS, np.array([1, 2])),
            (INPUT_OBJECTS, M.I.FF_CHILDREN_COUNT % OUTPUT_OBJECTS, np.array([1, 1]))):
            data = m.get_current_measurement(object_name, feature)
            self.assertEqual(len(data), len(expected))
            (OUTPUT_OBJECTS, M.I.M_NUMBER_OBJECT_NUMBER, np.array([1, 2])),
            (OUTPUT_OBJECTS, M.I.FF_PARENT % INPUT_OBJECTS, np.array([1, 2])),
            (INPUT_OBJECTS, M.I.FF_CHILDREN_COUNT % OUTPUT_OBJECTS, np.array([1, 1]))):
            data = m.get_current_measurement(object_name, feature)
            self.assertEqual(len(data), len(expected))
            (OUTPUT_OBJECTS, M.I.M_NUMBER_OBJECT_NUMBER, np.array([1, 2])),
            (OUTPUT_OBJECTS, M.I.FF_PARENT % INPUT_OBJECTS, np.array([1, 3])),
            (INPUT_OBJECTS, M.I.FF_CHILDREN_COUNT % OUTPUT_OBJECTS, np.array([1, 0, 1]))):
            data = m.get_current_measurement(object_name, feature)
            self.assertEqual(len(data), len(expected))