Example #1
0
 def test_ignore_3(self):
     data = [100.0, 1.0, 1.0, 1.0]
     keep, throw = SubselectionAlgorithm.ignore(data)
     self.assertEqual([0, 1, 2, 3], keep)
     self.assertEqual([], throw)
Example #2
0
 def test_ignore_1(self):
     data = [1.0, 0.6, 0.5, 0.45, 0.4, 0.3, 0.2, 0.1]
     keep, throw = SubselectionAlgorithm.ignore(data)
     self.assertEqual([0, 1, 2, 3, 4, 5, 6, 7], keep)
     self.assertEqual([], throw)