-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RCT/YJ/Fix 5-34 bug #1590
RCT/YJ/Fix 5-34 bug #1590
Conversation
|
||
return {"failing_infiltration_zone_ids": failing_infiltration_zone_ids} | ||
|
||
def rule_check(self, context, calc_vals=None, data=None): | ||
return len(calc_vals["failing_infiltration_zone_ids"]) == 0 | ||
return not calc_vals["failing_infiltration_zone_ids"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I simplified this part because empty list is falsy in Python.
p_zone_infiltration = p_zone["infiltration"] | ||
# b_zone could be NONE - add a check. | ||
b_zone_infiltration = b_zone["infiltration"] | ||
if b_zone is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is happening if b_zone is None
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weilixu @yunjoonjung-PNNL I think the case where a match cannot be made between baseline and proposed zones needs to be handled explicitly as an undetermined case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in PR #1593.
I addressed issue #1586 in this PR. Thanks!