Skip to content

Commit

Permalink
update 6-8 to fix the logic flaw
Browse files Browse the repository at this point in the history
  • Loading branch information
weilixu committed Aug 6, 2024
1 parent e895dfe commit 546e29f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rct229/rulesets/ashrae9012019/section6/section6rule8.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,15 @@ def get_calc_vals(self, context, data=None):
"total_hours_matched": schedule_comparison_result[
"total_hours_matched"
],
"eflh_difference": schedule_comparison_result["eflh_difference"]
}

def manual_check_required(self, context, calc_vals=None, data=None):
total_hours_compared = calc_vals["total_hours_compared"]
total_hours_matched = calc_vals["total_hours_matched"]
return total_hours_matched > total_hours_compared
eflh_difference = calc_vals["eflh_difference"]
return eflh_difference > 0

def rule_check(self, context, calc_vals=None, data=None):
total_hours_compared = calc_vals["total_hours_compared"]
total_hours_matched = calc_vals["total_hours_matched"]
# match means eflh_difference = 0
return total_hours_matched == total_hours_compared

0 comments on commit 546e29f

Please sign in to comment.