示例#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
 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))