Skip to content

Commit

Permalink
Simplified check_bool method logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjoonjung-PNNL committed Nov 6, 2024
1 parent e17b9b2 commit 2cabe42
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions constrain/library/vav_turndown_during_reheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ def verify(self):
self.result = self.df["result"]

def check_bool(self):
if len(self.result[self.result == False] > 0):
if len(self.result[self.result == "Untested"] > 0):
return "Untested"
elif len(self.result[self.result == False] > 0):
return False
else:
if len(self.result[self.result == "Untested"] > 0):
return
else:
return True
return True

0 comments on commit 2cabe42

Please sign in to comment.