Exemple #1
0
    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)
Exemple #2
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)
Exemple #3
0
    def get_kwh(self, start, end):

        assertDate('start', start)
        assertDate('end', end)

        return self.curveProvider.get(
            dateToLocal(start),
            dateToLocal(end),
            self.name,
            'ae'
            )