Skip to content

Commit

Permalink
Hot fix: update min_allowable_peak_capacity_fraction for ASHPSpaceHea…
Browse files Browse the repository at this point in the history
…ter default as intended in previous PR/release
  • Loading branch information
Bill-Becker committed Jan 23, 2025
1 parent 21caef2 commit a2091fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5507,7 +5507,7 @@ class ASHPSpaceHeaterInputs(BaseModel, models.Model):
def clean(self):
error_messages = {}
if self.dict.get("min_allowable_ton") in [None, "", []] and self.dict.get("min_allowable_peak_capacity_fraction") in [None, "", []]:
self.min_allowable_peak_capacity_fraction = 0.5
self.min_allowable_peak_capacity_fraction = 0.25

if self.dict.get("min_allowable_ton") not in [None, "", []] and self.dict.get("min_allowable_peak_capacity_fraction") not in [None, "", []]:
error_messages["bad inputs"] = "At most one of min_allowable_ton and min_allowable_peak_capacity_fraction may be input to model {}".format(self.key)
Expand Down

0 comments on commit a2091fd

Please sign in to comment.