Skip to content

Commit

Permalink
Fix recalc test
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Jun 14, 2024
1 parent cb18f8d commit eb0b1cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_supply_curve_sc_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,12 @@ def test_recalc_lcoe(cap_cost_scale):
* np.array(annual_cf).mean()
* 8760,
data["variable_operating_cost"])
assert np.allclose(summary[SupplyCurveField.MEAN_LCOE],
expected_recalc_lcoe)
if cap_cost_scale == "1":
assert np.allclose(summary[SupplyCurveField.MEAN_LCOE],
expected_recalc_lcoe)
else:
assert not np.allclose(summary[SupplyCurveField.MEAN_LCOE],
expected_recalc_lcoe)

fcr = summary[SupplyCurveField.FIXED_CHARGE_RATE]
cap_cost = (summary[SupplyCurveField.COST_SITE_OCC_USD_PER_AC_MW]
Expand Down

0 comments on commit eb0b1cd

Please sign in to comment.