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

Add section 1 rule 6 #1607

Closed
wants to merge 8 commits into from
Closed

Add section 1 rule 6 #1607

wants to merge 8 commits into from

Conversation

weilixu
Copy link
Collaborator

@weilixu weilixu commented Jan 17, 2025

This is draft implementation.
The rules are renumbered:
Original 1-6 -> 1-7
Original 1-7 -> 1-8

New 1-6 is added: #1570
This PR is putting on hold for review. The schema element: energysource does not have ON_SITE_RENEWABLE enum in the latest RES.


return {
"comparison_result": comparison_result,
"error_msg_list": error_msg_list,
"has_renewable": sum(renewable_annual_site_energy_use_list) > ZERO.ENERGY,
Copy link
Collaborator

@yunjoonjung-PNNL yunjoonjung-PNNL Jan 22, 2025

Choose a reason for hiding this comment

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

My understanding is the type of renewable_annual_site_energy_use_list is a list of list - Should we use list comprehension or flatten the list to sum up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I will update it.

Copy link
Collaborator

@yunjoonjung-PNNL yunjoonjung-PNNL left a comment

Choose a reason for hiding this comment

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

I made one comment - I'd appreciate it if you could double-check it. Thanks!

weilixu and others added 7 commits January 27, 2025 11:48
… into RS/WX/update_1_6

# Conflicts:
#	rct229/rulesets/ashrae9012019/section1/section1rule6.py
…lidation is failing for an unknown reason. Manual review shows no errors.
…e comparisons might sometimes fail because "in" means something different for a list than a string. Ruletest 1-8 returns a list that had the correct message, but it was not a string and therefore the comparison was failing.
Ruletest 1-6 update, renumber old 1-6, 1-7
@weilixu
Copy link
Collaborator Author

weilixu commented Jan 30, 2025

Fixed in #1629

@weilixu weilixu closed this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants