Skip to content

Commit ee3e69d

Browse files
Merge branch 'NREL:main' into main
2 parents c0808ea + 9dc9e4e commit ee3e69d

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} ({self.HeatStartPrice.quantity()}) cannot be ' \
2153+
f'greater than {self.HeatEndPrice.Name} ({self.HeatEndPrice.quantity()}). ' \
2154+
f'GEOPHIRES will assume {self.HeatStartPrice.Name} is equal to {self.HeatEndPrice.Name}.'
2155+
model.logger.warning(s)
21512156
else:
21522157
model.logger.info("No parameters read because no content provided")
21532158

0 commit comments

Comments
 (0)