Skip to content

Commit

Permalink
Make outages test a delta of 1% LCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Mar 29, 2024
1 parent 2053ef9 commit a769763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reoptjl/test/test_job_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_multiple_outages(self):
self.assertAlmostEqual(sum(sum(np.array(results["Outages"]["unserved_load_per_outage_kwh"]))), 0.0, places=0)
# TODO figure out why microgrid_upgrade_capital_cost is about $3000 different locally than on GitHub Actions
self.assertAlmostEqual(results["Outages"]["microgrid_upgrade_capital_cost"], 1974429.4, delta=5000.0)
self.assertAlmostEqual(results["Financial"]["lcc"], 59865240.0, delta=5000.0)
self.assertAlmostEqual(results["Financial"]["lcc"], 59865240.0, delta=0.01*results["Financial"]["lcc"])

def test_pv_battery_and_emissions_defaults_from_julia(self):
"""
Expand Down

0 comments on commit a769763

Please sign in to comment.