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