Skip to content

Commit

Permalink
Output warning if starting heat price is greater than ending heat pri…
Browse files Browse the repository at this point in the history
…ce (issue 254)
  • Loading branch information
jeffbourdier committed Dec 18, 2024
1 parent 140df52 commit 3ce7613
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} cannot be greater than {self.HeatEndPrice.Name}. ' \
f'GEOPHIRES will assume {self.HeatStartPrice.Name} is equal to {self.HeatEndPrice.Name}.'
print("Warning: " + s)
model.logger.warning(s)
else:
model.logger.info("No parameters read because no content provided")

Expand Down

0 comments on commit 3ce7613

Please sign in to comment.