Skip to content

Commit 87897d3

Browse files
'Geothermal Ratio (electricity vs heat)' client parsing test
1 parent 74d6c65 commit 87897d3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_geophires_x_client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,12 @@ def test_parse_annualized_capital_costs(self):
531531

532532
def test_parse_number_with_commas(self):
533533
result = GeophiresXResult(self._get_test_file_path('examples/S-DAC-GT.out'))
534-
self.assertAlmostEqualWithinPercentage(
535-
499_311_405.59, result.result['S-DAC-GT ECONOMICS']['Total Cost of Capture']['value']
536-
)
534+
sdac_e = result.result['S-DAC-GT ECONOMICS']
535+
self.assertAlmostEqualWithinPercentage(499_311_405.59, sdac_e['Total Cost of Capture']['value'])
536+
537+
self.assertAlmostEqualWithinPercentage(0.0017, sdac_e['Geothermal LCOH']['value'])
537538

538-
self.assertAlmostEqualWithinPercentage(result.result['S-DAC-GT ECONOMICS']['Geothermal LCOH']['value'], 0.0017)
539+
self.assertAlmostEqualWithinPercentage(20.7259, sdac_e['Geothermal Ratio (electricity vs heat)']['value'])
539540

540541
def test_parse_sdacgt_profile(self):
541542
result = GeophiresXResult(self._get_test_file_path('examples/S-DAC-GT.out'))

0 commit comments

Comments
 (0)