Skip to content

Commit d57189f

Browse files
Remove no-op code in AGSWellbores.read_parameters
1 parent dd1d166 commit d57189f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/geophires_x/AGSWellBores.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -566,21 +566,9 @@ def read_parameters(self, model: Model) -> None:
566566
model.logger.info(f'Init {str(__class__)}: {sys._getframe().f_code.co_name}')
567567
super().read_parameters(model) # read the default parameters
568568
# if we call super, we don't need to deal with setting the parameters here, just deal with the special cases
569-
# for the variables in this class because the call to the super.readparameters will set all the variables,
569+
# for the variables in this class because the call to the super.read_parameters will set all the variables,
570570
# including the ones that are specific to this class
571571

572-
if len(model.InputParameters) > 0:
573-
# loop through all the parameters that the user wishes to set, looking for parameters that match this object
574-
for item in self.ParameterDict.items():
575-
ParameterToModify = item[1]
576-
key = ParameterToModify.Name.strip()
577-
if key in model.InputParameters:
578-
ParameterReadIn = model.InputParameters[key]
579-
# just handle special cases for this class - the call to super set all the values,
580-
# including the value unique to this class
581-
else:
582-
model.logger.info("No parameters read because no content provided")
583-
584572
# handle error checking and special cases:
585573

586574
if model.reserv.numseg.value > 1:

0 commit comments

Comments
 (0)