Skip to content

Commit

Permalink
base LCOE capacity on pre-interconnect kwac just as the electrolyzer …
Browse files Browse the repository at this point in the history
…is seeing
  • Loading branch information
jaredthomas68 committed Feb 19, 2024
1 parent 2b7ae18 commit 9ed6f38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion greenheart/tools/eco/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def run_profast_lcoe(
},
)
pf.set_params(
"capacity", hopp_results["annual_energies"]["hybrid"] / 365.0
"capacity", np.sum(hopp_results["combined_hybrid_power_production_hopp"]) / 365.0
) # kWh/day
pf.set_params("maintenance", {"value": 0, "escalation": gen_inflation})
pf.set_params("analysis start year", orbit_config["atb_year"] + 1)
Expand Down
8 changes: 4 additions & 4 deletions tests/greenheart/test_hydrogen/test_eco.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def setUpClass(self):
def test_lcoh(self):
assert self.lcoh == approx(5.70230272215567) # TODO base this test value on something
def test_lcoe(self):
assert self.lcoe == approx(0.08608837821899562) # TODO base this test value on something
assert self.lcoe == approx(0.08062438550749312) # TODO base this test value on something

class TestSimulationWindWave(unittest.TestCase):
def setUp(self) -> None:
Expand All @@ -63,7 +63,7 @@ def setUpClass(self):
def test_lcoh(self):
assert self.lcoh == approx(7.01523894727639) #TODO base this test value on something
def test_lcoe(self):
assert self.lcoe == approx(0.10004937317920186) # prior to 20240207 value was approx(0.11051228251811765) # TODO base this test value on something
assert self.lcoe == approx(0.09962345766436045) # prior to 20240207 value was approx(0.11051228251811765) # TODO base this test value on something

class TestSimulationWindWaveSolar(unittest.TestCase):
def setUp(self) -> None:
Expand Down Expand Up @@ -96,7 +96,7 @@ def setUpClass(self):
def test_lcoh(self):
assert self.lcoh == approx(10.765330694539326) # prior to 20240207 value was approx(10.823798551850347) #TODO base this test value on something. Currently just based on output at writing.
def test_lcoe(self):
assert self.lcoe == approx(0.09995473178938513) # prior to 20240207 value was approx(0.11035426429749774) # TODO base this test value on something. Currently just based on output at writing.
assert self.lcoe == approx(0.09951895075981732) # prior to 20240207 value was approx(0.11035426429749774) # TODO base this test value on something. Currently just based on output at writing.

class TestSimulationWindWaveSolarBattery(unittest.TestCase):
def setUp(self) -> None:
Expand Down Expand Up @@ -129,4 +129,4 @@ def setUpClass(self):
def test_lcoh(self):
assert self.lcoh == approx(11.31588977975476) #TODO base this test value on something. Currently just based on output at writing.
def test_lcoe(self):
assert self.lcoe == approx(0.10861038057539885) # TODO base this test value on something. Currently just based on output at writing.
assert self.lcoe == approx(0.10813686278768041) # TODO base this test value on something. Currently just based on output at writing.

0 comments on commit 9ed6f38

Please sign in to comment.