Skip to content

Commit 6363f21

Browse files
Retain Reservoir hydrostatic pressure result field; consume in MC test as it was before since example isn't overpressure.
1 parent 0e5c2c6 commit 6363f21

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/geophires_x_client/geophires_x_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class GeophiresXResult:
145145
'Fracture area',
146146
'Fracture width',
147147
'Reservoir volume',
148+
'Reservoir hydrostatic pressure',
148149
'Average reservoir pressure',
149150
'Plant outlet pressure',
150151
'Production wellhead pressure',

tests/geophires_monte_carlo_tests/MC_GEOPHIRES_Settings_file-2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ OUTPUT, Average Net Electricity Production
55
OUTPUT, Project NPV
66
OUTPUT, Total capital costs
77
OUTPUT, Average Production Temperature
8-
OUTPUT, Average reservoir pressure
8+
OUTPUT, Reservoir hydrostatic pressure
99
ITERATIONS, 3

tests/geophires_monte_carlo_tests/test_geophires_monte_carlo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_monte_carlo_result_ordering(self):
8484
'Project NPV',
8585
'Total capital costs',
8686
'Average Production Temperature',
87-
'Average reservoir pressure',
87+
'Reservoir hydrostatic pressure',
8888
]:
8989
self.assertIn(output, result_json_obj)
9090
for stat in ['average', 'maximum', 'mean', 'median', 'minimum', 'standard deviation']:
@@ -102,7 +102,7 @@ def test_monte_carlo_result_ordering(self):
102102
self.assertGreater(avg_prod_tmp, 280)
103103
self.assertLess(avg_prod_tmp, 420)
104104

105-
self.assertGreater(result_json_obj['Average reservoir pressure']['average'], 60000)
105+
self.assertGreater(result_json_obj['Reservoir hydrostatic pressure']['average'], 60000)
106106
self.assertLess(result_json_obj['Total capital costs']['average'], 1000)
107107

108108
self.assertDictEqual(result_json_obj, result.result['output'])

0 commit comments

Comments
 (0)