Skip to content

Commit

Permalink
small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
john-zither committed Nov 10, 2024
1 parent 1be1f25 commit 7388081
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_core_single_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,24 +413,24 @@ def test_thermostat_type_1_get_exclude_no_electric_from_rhu(thermostat_heat_pump
stop = 60
step = 5
temperature_bins = list(t for t in range(start, stop+step, step))
log.debug(f"JOHN LOOK HERE {type(thermostat_missing_days_cooling)}")
rhu_runtime = thermostat_missing_days_cooling.get_resistance_heat_utilization_runtime(
log.debug(f"JOHN LOOK HERE {type(thermostat_heat_pump_electric_and_no_electric_backup)}")
rhu_runtime = thermostat_heat_pump_electric_and_no_electric_backup.get_resistance_heat_utilization_runtime(
core_heating_day_set_type_1_entire)
rhu = thermostat_missing_days_cooling.get_resistance_heat_utilization_bins(
rhu = thermostat_heat_pump_electric_and_no_electric_backup.get_resistance_heat_utilization_bins(
rhu_runtime,
temperature_bins,
core_heating_day_set_type_1_entire)

assert len(rhu) == 12

for item in rhu.itertuples():
bin_name = thermostat_missing_days_cooling._format_rhu('rhu1', item.Index.left, item.Index.right, duty_cycle=None)
bin_name = thermostat_heat_pump_electric_and_no_electric_backup._format_rhu('rhu1', item.Index.left, item.Index.right, duty_cycle=None)
bin_value = item.rhu
log.debug(f"JOHN LOOK HERE {type(thermostat_missing_days_cooling)}")
log.debug(f"JOHN LOOK HERE {type(thermostat_heat_pump_electric_and_no_electric_backup)}")
log.debug(f"JOHN LOOK HERE {bin_value}, {metrics_type_1_data[1][bin_name]}")
assert_allclose(bin_value, metrics_type_1_data[1][bin_name], rtol=1e-3)

rhu = thermostat_missing_days_cooling.get_resistance_heat_utilization_bins(
rhu = thermostat_heat_pump_electric_and_no_electric_backup.get_resistance_heat_utilization_bins(
None,
temperature_bins,
core_heating_day_set_type_1_entire)
Expand Down

0 comments on commit 7388081

Please sign in to comment.