def purge(self): array = numpy.array(self.buffer) self.buffer = originaldeque(numpy.zeros(self.length)) return array
def __init__(self,length): ''' Constructor ''' self.len = length self.buffer = originaldeque(numpy.zeros(length))
def __init__(self, length): ''' Constructor ''' self.len = length self.buffer = originaldeque(numpy.zeros(length))