From e59b0a08712d40fd92533dcf70d4d065d558636f Mon Sep 17 00:00:00 2001 From: bill-becker Date: Wed, 26 Feb 2025 16:20:59 -0700 Subject: [PATCH] Fix for user-input wind installed cost to not be over-written --- reoptjl/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reoptjl/models.py b/reoptjl/models.py index f6a5680eb..03166c0d0 100644 --- a/reoptjl/models.py +++ b/reoptjl/models.py @@ -3213,7 +3213,7 @@ class WIND_SIZE_CLASS_CHOICES(models.TextChoices): ) def clean(self): - if self.size_class != "": + if self.size_class != "" and self.installed_cost_per_kw is None: self.installed_cost_per_kw = WIND_COST_DEFAULTS.get(self.size_class, None) # will get set in REopt.jl if size_class not supplied class WindOutputs(BaseModel, models.Model):