diff --git a/apps/predbat/predheat.py b/apps/predbat/predheat.py index 53289f1d..30ba3f47 100644 --- a/apps/predbat/predheat.py +++ b/apps/predbat/predheat.py @@ -88,7 +88,7 @@ def fill_table_gaps(self, table): for key in range(min_key, max_key + 1): if key not in table: next_value = last_value - for next_key in range (key + 1, max_key + 1): + for next_key in range(key + 1, max_key + 1): if next_key in table: next_value = table[next_key] break @@ -363,7 +363,6 @@ def run_simulation(self, volume_temp, heating_active, save="best", last_predict_ # self.log("Minute {} flow {} volume {} diff {} power {} kw".format(minute, flow_temp, volume_temp, flow_temp_diff, heat_power_in / 1000.0)) - if self.mode == "gas": # Gas boiler flow temperature adjustment in efficiency based on flow temp inlet_temp = int(volume_temp + 0.5)