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

Update to ASHRAE Standard 205 schema v2.0.0 #16

Merged
merged 9 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/setup_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Setup and Test

on: push
on:
push:
schedule:
- cron: "0 9 * * SUN"

jobs:
build:
Expand All @@ -9,24 +12,22 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash
name: ${{ matrix.os }} py${{ matrix.python-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: bigladder/github-actions/setup-python-poetry@main
with:
python-version: ${{ matrix.python-version }}
- name: Test
run: |
source $VENV
poetry run doit
run: poetry run doit
- name: Upload output
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: output-${{ matrix.os }}-py${{ matrix.python-version }}
path: output
6 changes: 6 additions & 0 deletions examples/generate-205.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
size = resdx.to_u(dx_unit.rated_net_total_cooling_capacity[0], "ton_ref")

dx_unit.metadata.description = f"{dx_unit.number_of_cooling_speeds} speed, {size:.1f} ton, {seer2:.1f} SEER2 air conditioner"
dx_unit.metadata.uuid_seed = hash((dx_unit.number_of_cooling_speeds, size, seer2))
dx_unit.metadata.data_version = 2

dx_unit.fan.metadata.uuid_seed = dx_unit.metadata.uuid_seed + 1
dx_unit.fan.metadata.data_version = dx_unit.metadata.data_version


representation = dx_unit.generate_205_representation()

Expand Down
Loading