Skip to content

Commit

Permalink
Add extra check for lcoe correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Jun 13, 2024
1 parent 43ec152 commit c0fa7a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_supply_curve_sc_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,16 @@ def test_recalc_lcoe(cap_cost_scale):
summary[SupplyCurveField.COST_SITE_OCC_USD_PER_AC_MW]
/ summary[SupplyCurveField.COST_BASE_OCC_USD_PER_AC_MW])

expected_recalc_lcoe = lcoe_fcr(data["fixed_charge_rate"],
data["capital_cost"],
data["fixed_operating_cost"],
data["system_capacity"]
* np.array(annual_cf).mean()
* 8760,
data["variable_operating_cost"])
assert 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]
* summary[SupplyCurveField.CAPACITY_AC_MW])
Expand Down

0 comments on commit c0fa7a4

Please sign in to comment.