def get_kwh(self, start, end): assertDate('start', start) assertDate('end', end) return np.sum([ meter.get_kwh(start, end) for meter in self.meters if meter.enabled ], axis=0)
def get_kwh(self, start, end): assertDate('start', start) assertDate('end', end) return np.sum([ plant.get_kwh(start, end) for plant in self.plants if plant.enabled ], axis=0)
def get_kwh(self, start, end): assertDate('start', start) assertDate('end', end) return self.curveProvider.get( dateToLocal(start), dateToLocal(end), self.name, 'ae' )