Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrunik committed Aug 12, 2024
1 parent f838880 commit ea552b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hopp/test_hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,12 +1466,12 @@ def test_hybrid_financials(hybrid_config):
hybrid_config["technologies"] = solar_wind_hybrid
hi = HoppInterface(hybrid_config)
hi.system.pv.om_production = 10
hi.system.set_om_costs(pv_om_per_kw=30,wind_om_per_mwh=2, battery_om_per_mwh=10)
hi.system.set_om_costs(pv_om_per_kw=30,wind_om_per_mwh=2)
hybrid_plant = hi.system
hybrid_plant
hi.simulate()

assert hi.system.pv._financial_model.SystemCosts.om_production == hi.system.pv.om_production
assert hi.system.om_total_expenses['pv'][1] == approx(248536, rel=5e-2)
assert hi.system.om_total_expenses['wind'][1] == approx(430000.0, rel=5e-2)
assert hi.system.om_total_expenses['wind'][1] == approx(493903.4397049556, rel=5e-2)

0 comments on commit ea552b7

Please sign in to comment.