def new_zeros_array(self, length): array = numpy.zeros(length, dtype=self.dtype) return new_quantity(array, zero_unit())
def __init__(self): Quantity.__init__(self, zero_unit()) self.base = () self.factor = 1 self.number = 0.0 self.dtype = 'float64'