Ejemplo n.º 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
Ejemplo n.º 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