Skip to content

Commit

Permalink
Implement requested changes to heat price warning (PR 323 / issue 254)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbourdier committed Dec 29, 2024
1 parent 3ce7613 commit c640c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geophires_x/Economics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2149,9 +2149,9 @@ def read_parameters(self, model: Model) -> None:
" 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}. ' \
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}.'
print("Warning: " + s)
model.logger.warning(s)
else:
model.logger.info("No parameters read because no content provided")
Expand Down

0 comments on commit c640c9c

Please sign in to comment.