Skip to content

Commit 6fa87e2

Browse files
test_egs_laterals
1 parent d57189f commit 6fa87e2

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

tests/test_geophires_x.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def test_transmission_pipeline_cost(self):
597597
)
598598

599599
def test_well_drilling_and_completion_capital_cost_adjustment_factor(self):
600-
base_file = self._get_test_file_path('geophires_x_tests/drilling-adjustment-factor.txt')
600+
base_file = self._get_test_file_path('geophires_x_tests/generic-egs-case.txt')
601601
r_no_adj = GeophiresXClient().get_geophires_result(GeophiresInputParameters(from_file_path=base_file))
602602

603603
r_noop_adj = GeophiresXClient().get_geophires_result(
@@ -650,14 +650,23 @@ def c_well(r, prod: bool = False, inj: bool = False):
650650
self.assertAlmostEqual(3 * c_well_no_adj, c_inj_well_adj, delta=0.1)
651651

652652
def test_egs_laterals(self):
653-
base_file = self._get_test_file_path('geophires_x_tests/drilling-adjustment-factor.txt')
654-
GeophiresXClient().get_geophires_result(
655-
GeophiresInputParameters(
656-
from_file_path=base_file,
657-
params={
658-
'Well Geometry Configuration': 4,
659-
'Nonvertical Length per Multilateral Section': 1500,
660-
'Number of Multilateral Sections': 1,
661-
},
653+
def _get_result(num_laterals: int) -> GeophiresXResult:
654+
return GeophiresXClient().get_geophires_result(
655+
GeophiresInputParameters(
656+
from_file_path=self._get_test_file_path('geophires_x_tests/generic-egs-case.txt'),
657+
params={
658+
'Well Geometry Configuration': 4,
659+
'Number of Multilateral Sections': num_laterals,
660+
},
661+
)
662662
)
663+
664+
self.assertIsNotNone(
665+
_get_result(1).result['CAPITAL COSTS (M$)']['Drilling and completion costs per non-vertical section'][
666+
'value'
667+
]
668+
)
669+
670+
self.assertIsNone(
671+
_get_result(0).result['CAPITAL COSTS (M$)']['Drilling and completion costs per non-vertical section']
663672
)

0 commit comments

Comments
 (0)