@@ -597,7 +597,7 @@ def test_transmission_pipeline_cost(self):
597
597
)
598
598
599
599
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' )
601
601
r_no_adj = GeophiresXClient ().get_geophires_result (GeophiresInputParameters (from_file_path = base_file ))
602
602
603
603
r_noop_adj = GeophiresXClient ().get_geophires_result (
@@ -650,14 +650,23 @@ def c_well(r, prod: bool = False, inj: bool = False):
650
650
self .assertAlmostEqual (3 * c_well_no_adj , c_inj_well_adj , delta = 0.1 )
651
651
652
652
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
+ )
662
662
)
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' ]
663
672
)
0 commit comments