Skip to content

Commit f03097e

Browse files
Parse SUTRA Reservoir Model in SUMMARY OF RESULTS (was previously being semi-erroneously recategorized into RESERVOIR PARAMETERS)
1 parent 0e38d57 commit f03097e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/geophires_x_client/geophires_x_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class GeophiresXResult:
4040
_StringValueField('End-Use Option'),
4141
_StringValueField('End-Use'),
4242
_StringValueField('Surface Application'),
43+
_EqualSignDelimitedField('Reservoir Model'), # SUTRA only
4344
'Average Net Electricity Production',
4445
'Electricity breakeven price',
4546
'Total CAPEX',

tests/geophires_x_client_tests/test_geophires_x_result.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,7 @@ def test_ags_clgs_style_output(self) -> None:
6363
self._get_test_file_path('../examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.out')
6464
)
6565
self.assertIsNotNone(r.result['SUMMARY OF RESULTS']['LCOE'])
66+
67+
def test_sutra_reservoir_model_in_summary(self) -> None:
68+
r: GeophiresXResult = GeophiresXResult(self._get_test_file_path('../examples/SUTRAExample1.out'))
69+
self.assertEqual('SUTRA Model', r.result['SUMMARY OF RESULTS']['Reservoir Model'])

0 commit comments

Comments
 (0)