示例#1
0
 def rawCountsForOrder(self, allCounts, order):
     for history, values in assertIsSorted(allCounts):
         if len(history) < order: continue
         history, oldest = history[:order - 1], history[order - 1]
         yield history, oldest, values
示例#2
0
    def rawCountsForOrder(self, allCounts, order):
	for history, values in assertIsSorted(allCounts):
	    if len(history) < order: continue
	    history, oldest = history[:order-1], history[order-1]
	    yield history, oldest, values