agregator.py
def calculate(self, time, delta_time):
        """
        Default calculate operation. We keep an history of operations
        """
        self._internal_delta_energy = units.value(units.convert(self.power * delta_time * units.second, units.joule))

        if not self.on:
            self._internal_delta_energy = 0

        self.history[time] = self.on

        Default calculate operation. We keep an history of operations
        
Default calculate operation. We keep an history of operations
Default calculate operation . We keep an history of operations
def calculate(self, time, delta_time):
        self._internal_delta_energy = units.value(units.convert(self.power * delta_time * units.second, units.joule))
        if not self.on:
            self._internal_delta_energy = 0
        self.history[time] = self.on
def calculate ( self , time , delta_time ) : self . _internal_delta_energy = units . value ( units . convert ( self . power * delta_time * units . second , units . joule ) ) if not self . on : self . _internal_delta_energy = 0 self . history [ time ] = self . on
Default calculate operation.
Default calculate operation .
"""
        Default calculate operation. We keep an history of operations
        """
self
time
delta_time