From 546e29f43ff490625cbae7d7c778bfaa723200fe Mon Sep 17 00:00:00 2001 From: Weili Xu Date: Tue, 6 Aug 2024 11:26:29 -0700 Subject: [PATCH] update 6-8 to fix the logic flaw --- rct229/rulesets/ashrae9012019/section6/section6rule8.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rct229/rulesets/ashrae9012019/section6/section6rule8.py b/rct229/rulesets/ashrae9012019/section6/section6rule8.py index fd9587ff75..f275fb63ff 100644 --- a/rct229/rulesets/ashrae9012019/section6/section6rule8.py +++ b/rct229/rulesets/ashrae9012019/section6/section6rule8.py @@ -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