-
Notifications
You must be signed in to change notification settings - Fork 6
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/JX/Rule5-39 #1196
RCT/JX/Rule5-39 #1196
Conversation
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.
Good work and you are getting close to the finish line.
Some comments need to address.
Thanks Weili for the comments and clarification! I thought the required_fields |
You are correct. |
Great! Thank you for the clarification! |
@Jiarongx-Xie when updating this rule, please change the rule id to 5-38, and rebase the pull request to RT/JG/section_5_numbering_update |
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.
@Jiarongx-Xie There are some stylist comments but one of them needs to be addressed.
rpd = context.BASELINE_0 | ||
return any( | ||
[ | ||
surface_b |
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 think you can do more explicit logic here:
any([get_opaque_surface_type(surface_b) == OST.BELOW_GRADE_WALL for surface_b in find_all(..., rpd)])
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.
Good catch!
) | ||
def applicability_check(self, context, calc_vals, data): | ||
ground_temperature_schedule = calc_vals["ground_temperature_schedule"] | ||
return ground_temperature_schedule |
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 think here you miss the get_manual_check_required_msg
function to determine the message according to the RDS.
if ground_temperature_schedule
exist, then return It cannot be determined if the ground temperature schedule for the project is representative of the project climate.
else:
A ground temperature schedule was not found for the project.
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!
Thank you Weili for the review. I have addressed these comments. @weilixu |
I did not see updates, have you pushed your commits? |
This ruleset has not been tested.