-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/pnnl/ruleset-checking-tool…
… into RS/WX/rule1-9
- Loading branch information
Showing
473 changed files
with
644,580 additions
and
257,186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Auto PR from develop branch to a feature branch | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- develop | ||
|
||
env: | ||
TARGET_BRANCH: feature/ashrae-9012022 #define the target branch when in parallel developing a feature | ||
|
||
jobs: | ||
create-pr: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.AUTO_PAT }} | ||
|
||
- name: Create Pull Request from develop to feature/ashrae-9012022 | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
base: feature/ashrae-9012022 | ||
branch: develop | ||
title: "Merge develop into feature/update_tool" | ||
body: "This PR merges the latest chagens from the develop branch into the feature/ashrae-9012022 branch" | ||
reviewers: weilixu | ||
draft: false | ||
labels: "auto-pr" | ||
token: ${{ secrets.AUTO_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Section 1 - Rule 1-6 | ||
|
||
**Rule ID:** 1-6 | ||
**Rule Description:** On-site renewable energy shall not be included in the baseline building performance. | ||
**Rule Assertion:** Baseline RMD = expected value | ||
**Appendix G Section:** G3.11 18 Baseline | ||
|
||
**Mandatory Rule:** True | ||
**Evaluation Context:** Each baseline RMD | ||
**Function Call:** | ||
|
||
## Applicability Check: | ||
- All projects are applicable | ||
|
||
|
||
## Rule Logic: | ||
- set a boolean has_renewables and set it to false: `has_renewables = false` | ||
- look at each baseline model rotation: `for rotation in [B_RMD, B_RMD_90, B_RMD_180, B_RMD_270]:` | ||
- get the baseline output schema: `output = rotation.output` | ||
- get the output instance: `output_instance = output.output_instance` | ||
- look at each end use result: `for end_use_result in output_instance.annual_end_use_results:` | ||
- check if the energy source for the end_use_result is "ON_SITE_RENEWABLES": `if end_use_result.energy_source == "ON_SITE_RENEWABLES":` | ||
- check if the energy end use is greater than 0: `if end_us_result.annual_site_energy_use > 0:` | ||
- set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` | ||
- if we get here without going to the rule assertion, continue to rule assertion: `CONTINUE TO RULE ASSERTION` | ||
|
||
**Rule Assertion:** | ||
- Case 1: If has_renewables is true, then FAIL: `if has_renewables == true: FAIL` | ||
- Case 2: otherwise, there are no renewables, PASS: `else: PASS` | ||
|
||
|
||
**Notes:** | ||
1. | ||
|
||
**[Back](../_toc.md)** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.