예제 #1
0
파일: bar.py 프로젝트: GElliott/schedcat
def all_dbf_points_of_change_dk(all_tsks, max_t, dk):
    all_points = [dbf_points_of_change_dk(t, max_t, dk) for t in all_tsks]
    return uniq(imerge(lambda x,y: x < y, *all_points))
예제 #2
0
 def test_uniq(self):
     s = iter.uniq(iter.imerge(lambda x, y: x < y, self.s1, self.s2, self.s3))
     self.assertEqual(list(s)[:10],
         [-3, 1, 4, 7, 9, 10, 13, 14, 16, 19])
예제 #3
0
파일: util.py 프로젝트: Mutinifni/schedcat3
 def test_uniq(self):
     s = iter.uniq(iter.imerge(lambda x, y: x < y, self.s1, self.s2, self.s3))
     self.assertEqual(list(s)[:10],
         [-3, 1, 4, 7, 9, 10, 13, 14, 16, 19])
예제 #4
0
 def rbf_points_of_change(self, max_t=None, offset=0):
     all_pts = [t.rbf_points_of_change(max_t, offset) for t in self]
     return uniq(merge(*all_pts))
예제 #5
0
파일: tasks.py 프로젝트: RSpliet/schedcat
 def rbf_points_of_change(self, max_t = None, offset = 0):
     all_pts = [t.rbf_points_of_change(max_t, offset) for t in self]
     return uniq(merge(*all_pts))
예제 #6
0
def testing_set(ts, speed, min_time):
    all_points = [test_points(ti, speed, min_time) for ti in ts]
    return uniq(imerge(lambda x,y: x < y, *all_points))
예제 #7
0
def testing_set(ts, speed, min_time):
    all_points = [test_points(ti, speed, min_time) for ti in ts]
    return uniq(imerge(lambda x, y: x < y, *all_points))
예제 #8
0
def all_dbf_points_of_change_dk(all_tsks, max_t, dk):
    all_points = [dbf_points_of_change_dk(t, max_t, dk) for t in all_tsks]
    return uniq(imerge(lambda x, y: x < y, *all_points))