Skip to content

Commit

Permalink
Merge pull request #323 from jeffbourdier/heat-price-validation
Browse files Browse the repository at this point in the history
Warn user if starting heat price reset
  • Loading branch information
jeffbourdier authored Dec 31, 2024
2 parents 140df52 + c640c9c commit 9dc9e4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/geophires_x/Economics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,11 @@ def read_parameters(self, model: Model) -> None:
" range 0-10. GEOPHIRES will assume default surface plant O&M cost correlation with" +
" adjustment factor = 1.")
ParameterToModify.value = 1.0
if self.HeatStartPrice.value > self.HeatEndPrice.value:
s = f'{self.HeatStartPrice.Name} ({self.HeatStartPrice.quantity()}) cannot be ' \
f'greater than {self.HeatEndPrice.Name} ({self.HeatEndPrice.quantity()}). ' \
f'GEOPHIRES will assume {self.HeatStartPrice.Name} is equal to {self.HeatEndPrice.Name}.'
model.logger.warning(s)
else:
model.logger.info("No parameters read because no content provided")

Expand Down

0 comments on commit 9dc9e4e

Please sign in to comment.