Skip to content
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

Merged
merged 1 commit into from
Dec 30, 2024
Merged

RCT/YJ/Fix 5-34 bug #1590

merged 1 commit into from
Dec 30, 2024

Conversation

yunjoonjung-PNNL
Copy link
Collaborator

@yunjoonjung-PNNL yunjoonjung-PNNL commented Dec 27, 2024

I addressed issue #1586 in this PR. Thanks!

@yunjoonjung-PNNL yunjoonjung-PNNL added bug Something isn't working section5 labels Dec 27, 2024
@yunjoonjung-PNNL yunjoonjung-PNNL self-assigned this Dec 27, 2024

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"]
Copy link
Collaborator Author

@yunjoonjung-PNNL yunjoonjung-PNNL Dec 27, 2024

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.

@weilixu weilixu merged commit d113720 into develop Dec 30, 2024
2 checks passed
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:
Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in PR #1593.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working section5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants