@@ -1753,7 +1753,8 @@ def __init__(self, model: Model):
17531753 CurrentUnits = PercentUnit .TENTH
17541754 )
17551755 self .ProjectMOIC = self .OutputParameterDict [self .ProjectMOIC .Name ] = OutputParameter (
1756- "Project Multiple of Invested Capital" ,
1756+ "Project MOIC" ,
1757+ ToolTipText = "Project Multiple of Invested Capital" ,
17571758 UnitType = Units .PERCENT ,
17581759 PreferredUnits = PercentUnit .TENTH ,
17591760 CurrentUnits = PercentUnit .TENTH
@@ -1910,35 +1911,30 @@ def read_parameters(self, model: Model) -> None:
19101911 ParameterToModify .value = 1.0
19111912 elif ParameterToModify .Name == "Well Drilling and Completion Capital Cost Adjustment Factor" :
19121913 if self .per_production_well_cost .Valid and ParameterToModify .Valid :
1913- print ( "Warning: Provided well drilling and completion cost adjustment factor not" +
1914- " considered because valid total well drilling and completion cost provided." )
1915- model . logger . warning ( "Provided well drilling and completion cost adjustment factor not" +
1916- " considered because valid total well drilling and completion cost provided." )
1914+ msg = ( ' Provided well drilling and completion cost adjustment factor not considered '
1915+ ' because valid total well drilling and completion cost provided.' )
1916+ print ( f'Warning: { msg } ' )
1917+ model . logger . warning ( msg )
19171918 elif not self .per_production_well_cost .Provided and not self .production_well_cost_adjustment_factor .Provided :
19181919 ParameterToModify .value = 1.0
1919- print ("Warning: No valid well drilling and completion total cost or adjustment" +
1920- " factor provided. GEOPHIRES will assume default built-in well drilling and" +
1921- " completion cost correlation with adjustment factor = 1." )
1922- model .logger .warning (
1923- "No valid well drilling and completion total cost or adjustment factor" +
1924- " provided. GEOPHIRES will assume default built-in well drilling and completion cost" +
1925- " correlation with adjustment factor = 1." )
1920+ msg = ("No valid well drilling and completion total cost or adjustment factor provided. "
1921+ "GEOPHIRES will assume default built-in well drilling and completion cost "
1922+ "correlation with adjustment factor = 1." )
1923+ print (f'Warning: { msg } ' )
1924+ model .logger .warning (msg )
19261925 elif self .per_production_well_cost .Provided and not self .per_production_well_cost .Valid :
1927- print ("Warning: Provided well drilling and completion cost outside of range 0-1000." +
1928- " GEOPHIRES will assume default built-in well drilling and completion cost correlation" +
1929- " with adjustment factor = 1." )
1930- model .logger .warning ("Provided well drilling and completion cost outside of range 0-1000." +
1931- " GEOPHIRES will assume default built-in well drilling and completion cost correlation with" +
1932- " adjustment factor = 1." )
1926+ msg = ("Provided well drilling and completion cost outside of range 0-1000. GEOPHIRES "
1927+ "will assume default built-in well drilling and completion cost correlation "
1928+ "with adjustment factor = 1." )
1929+ print (f'Warning: { msg } ' )
1930+ model .logger .warning (msg )
19331931 self .production_well_cost_adjustment_factor .value = 1.0
19341932 elif not self .per_production_well_cost .Provided and self .production_well_cost_adjustment_factor .Provided and not self .production_well_cost_adjustment_factor .Valid :
1935- print ("Warning: Provided well drilling and completion cost adjustment factor outside" +
1936- " of range 0-10. GEOPHIRES will assume default built-in well drilling and completion" +
1937- " cost correlation with adjustment factor = 1." )
1938- model .logger .warning (
1939- "Provided well drilling and completion cost adjustment factor outside" +
1940- " of range 0-10. GEOPHIRES will assume default built-in well drilling and completion" +
1941- " cost correlation with adjustment factor = 1." )
1933+ msg = ("Provided well drilling and completion cost adjustment factor outside of range "
1934+ "0-10. GEOPHIRES will assume default built-in well drilling and completion cost "
1935+ "correlation with adjustment factor = 1." )
1936+ print (f'Warning: { msg } ' )
1937+ model .logger .warning (msg )
19421938 self .production_well_cost_adjustment_factor .value = 1.0
19431939 elif ParameterToModify .Name == "Wellfield O&M Cost Adjustment Factor" :
19441940 if self .oamtotalfixed .Valid :
@@ -2169,6 +2165,7 @@ def read_parameters(self, model: Model) -> None:
21692165
21702166 coerce_int_params_to_enum_values (self .ParameterDict )
21712167 self .sync_interest_rate (model )
2168+ self .sync_well_drilling_and_completion_capital_cost_adjustment_factor (model )
21722169
21732170 model .logger .info (f'complete { __class__ !s} : { sys ._getframe ().f_code .co_name } ' )
21742171
@@ -2198,6 +2195,16 @@ def discount_rate_display() -> str:
21982195
21992196 self .interest_rate .value = self .discountrate .quantity ().to (convertible_unit (self .interest_rate .CurrentUnits )).magnitude
22002197
2198+ def sync_well_drilling_and_completion_capital_cost_adjustment_factor (self , model ):
2199+ if (self .production_well_cost_adjustment_factor .Provided
2200+ and not self .injection_well_cost_adjustment_factor .Provided ):
2201+ factor = self .production_well_cost_adjustment_factor .value
2202+ self .injection_well_cost_adjustment_factor .value = factor
2203+ model .logger .info (
2204+ f'Set { self .injection_well_cost_adjustment_factor .Name } to { factor } because '
2205+ f'{ self .production_well_cost_adjustment_factor .Name } was provided.' )
2206+
2207+
22012208 def Calculate (self , model : Model ) -> None :
22022209 """
22032210 The Calculate function is where all the calculations are done.
0 commit comments