Did I find the right examples for you? yes no

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

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_data_utils.py   Orange(Download)
        data1 = utils.take(data, indices1, axis=1)
        data1m = utils.take(data, mask1, axis=1)
        self.assertEquals(len(data1.domain), len(indices1))
        self.assertEquals(len(data1m.domain), len(set(indices1)))
#        self.assertEquals(list(data1), list(data1m))
 
        data2 = utils.take(data, indices2, axis=1)
        data2m = utils.take(data, mask2, axis=1)
        self.assertEquals(len(data2.domain), len(indices2))
        self.assertEquals(len(data2m.domain), len(set(indices2)))
        data3 = utils.take(data, indices3, axis=1)
        data3m = utils.take(data, mask3, axis=1)
        self.assertEquals(len(data3.domain), len(indices3))
        self.assertEquals(len(data3m.domain), len(set(indices3)))
#        self.assertEquals(list(data3), list(data3m))