File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def __init__(self, model: Model):
287287 self .fracnumb = self .ParameterDict [self .fracnumb .Name ] = intParameter (
288288 "Number of Fractures" ,
289289 DefaultValue = 10 ,
290- AllowableRange = list (range (1 , 150 , 1 )),
290+ AllowableRange = list (range (1 , 100_000 , 1 )),
291291 UnitType = Units .NONE ,
292292 ErrMessage = "assume default number of fractures (10)" ,
293293 ToolTipText = "Number of identical parallel fractures in EGS fracture-based reservoir model."
Original file line number Diff line number Diff line change 77from geophires_x .GeoPHIRESUtils import static_pressure_MPa
88from geophires_x .Model import Model
99from geophires_x .Reservoir import Reservoir
10+ from geophires_x_client import GeophiresInputParameters
11+ from geophires_x_client import GeophiresXClient
1012from tests .base_test_case import BaseTestCase
1113
1214
@@ -27,6 +29,7 @@ def test_reservoir_lithostatic_pressure(self):
2729 self .assertAlmostEqual (79.433865 , p .magnitude , places = 3 )
2830 self .assertEqual ('megapascal' , p .units )
2931
32+ # noinspection PyMethodMayBeStatic
3033 def _new_model (self , input_file = None ) -> Model :
3134 stash_cwd = Path .cwd ()
3235 stash_sys_argv = sys .argv
@@ -45,3 +48,15 @@ def _new_model(self, input_file=None) -> Model:
4548 os .chdir (stash_cwd )
4649
4750 return m
51+
52+ def test_number_of_fractures (self ):
53+ r = GeophiresXClient ().get_geophires_result (
54+ GeophiresInputParameters (
55+ from_file_path = self ._get_test_file_path ('generic-egs-case.txt' ),
56+ params = {
57+ 'Number of Fractures' : 10_000 ,
58+ },
59+ )
60+ )
61+
62+ self .assertEqual (10_000 , r .result ['RESERVOIR PARAMETERS' ]['Number of fractures' ]['value' ])
You can’t perform that action at this time.
0 commit comments