Skip to content

Commit c640c9c

Browse files
committed
Implement requested changes to heat price warning (PR 323 / issue 254)
1 parent 3ce7613 commit c640c9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geophires_x/Economics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,9 +2149,9 @@ def read_parameters(self, model: Model) -> None:
21492149
" adjustment factor = 1.")
21502150
ParameterToModify.value = 1.0
21512151
if self.HeatStartPrice.value > self.HeatEndPrice.value:
2152-
s = f'{self.HeatStartPrice.Name} cannot be greater than {self.HeatEndPrice.Name}. ' \
2152+
s = f'{self.HeatStartPrice.Name} ({self.HeatStartPrice.quantity()}) cannot be ' \
2153+
f'greater than {self.HeatEndPrice.Name} ({self.HeatEndPrice.quantity()}). ' \
21532154
f'GEOPHIRES will assume {self.HeatStartPrice.Name} is equal to {self.HeatEndPrice.Name}.'
2154-
print("Warning: " + s)
21552155
model.logger.warning(s)
21562156
else:
21572157
model.logger.info("No parameters read because no content provided")

0 commit comments

Comments
 (0)