From c640c9cc2c8275978af30bb795d49a3c9afab4b8 Mon Sep 17 00:00:00 2001 From: Jeff Bourdier Date: Sun, 29 Dec 2024 16:58:20 -0600 Subject: [PATCH] Implement requested changes to heat price warning (PR 323 / issue 254) --- src/geophires_x/Economics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geophires_x/Economics.py b/src/geophires_x/Economics.py index 850cd726..7f1da0f9 100644 --- a/src/geophires_x/Economics.py +++ b/src/geophires_x/Economics.py @@ -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")