Skip to content

Commit 3ce7613

Browse files
committed
Output warning if starting heat price is greater than ending heat price (issue 254)
1 parent 140df52 commit 3ce7613

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/geophires_x/Economics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,11 @@ def read_parameters(self, model: Model) -> None:
21482148
" range 0-10. GEOPHIRES will assume default surface plant O&M cost correlation with" +
21492149
" adjustment factor = 1.")
21502150
ParameterToModify.value = 1.0
2151+
if self.HeatStartPrice.value > self.HeatEndPrice.value:
2152+
s = f'{self.HeatStartPrice.Name} cannot be greater than {self.HeatEndPrice.Name}. ' \
2153+
f'GEOPHIRES will assume {self.HeatStartPrice.Name} is equal to {self.HeatEndPrice.Name}.'
2154+
print("Warning: " + s)
2155+
model.logger.warning(s)
21512156
else:
21522157
model.logger.info("No parameters read because no content provided")
21532158

0 commit comments

Comments
 (0)