Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ursulaelmir committed Aug 31, 2020
1 parent e896596 commit af4383e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ def test_benchmark_AFG_grid_heatpump_heat(self, margs):
VALUE
]["data"]
# compare cost of using heat pump with electricity price to heat price
cost_of_using_heatpump = "electricity_price[i] / data[ENERGY_CONVERSION]['heat_pump'][EFFICIENCY][VALUE] comp.data[ENERGY_PROVIDERS]['Heat DSO'][ENERGY_PRICE][VALUE]"
cost_of_using_heat_dso = (
"data[ENERGY_PROVIDERS]['Heat DSO'][ENERGY_PRICE][VALUE]"
)
for i in range(0, len(electricity_price)):
if (
electricity_price[i]
Expand All @@ -313,7 +317,7 @@ def test_benchmark_AFG_grid_heatpump_heat(self, margs):
):
assert busses_flow["Heat DSO_consumption_period"][i] == approx(
abs(busses_flow["demand_heat"][i])
), f'Even though the marginal costs to use the heat pump are higher then the heat DSO price with {electricity_price[i] / data[ENERGY_CONVERSION][{"heat_pump"][EFFICIENCY][VALUE]} comp. data[ENERGY_PROVIDERS]["Heat DSO"][ENERGY_PRICE][VALUE]}, the heat DSO is not solely used for energy supply.'
), f"Even though the marginal costs to use the heat pump are higher than the heat DSO price with {cost_of_using_heatpump} comp. {cost_of_using_heat_dso}, the heat DSO is not solely used for energy supply."
else:
assert busses_flow["heat_pump"][i] == approx(
abs(busses_flow["demand_heat"][i])
Expand Down

0 comments on commit af4383e

Please sign in to comment.