Skip to content

Commit

Permalink
Add class of construction column.
Browse files Browse the repository at this point in the history
  • Loading branch information
lymereJ committed Feb 12, 2025
1 parent 1f83706 commit 4a4d2a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/openstudio_standards_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
black-formatting-check:
name: Black formatting check
runs-on: 'ubuntu-latest'
runs-on: 'ubuntu-22.04'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -22,7 +22,7 @@ jobs:
version: "22.12.0"
run-unit-tests:
name: Run unit tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Python
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Balconies and floor decks",
"mitigated_psi_factor": 0.2,
"unmitigated_psi_factor": 0.5,
Expand All @@ -12,6 +13,7 @@
},
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Cladding supports",
"mitigated_psi_factor": 0.2,
"unmitigated_psi_factor": 0.3,
Expand All @@ -23,6 +25,7 @@
},
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Structural beams and columns, carbon steel",
"mitigated_psi_factor": null,
"unmitigated_psi_factor": 1,
Expand All @@ -34,6 +37,7 @@
},
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Structural beams and columns, concrete",
"mitigated_psi_factor": null,
"unmitigated_psi_factor": 0.3,
Expand All @@ -45,6 +49,7 @@
},
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Vertical fenestration",
"mitigated_psi_factor": 0.15,
"unmitigated_psi_factor": null,
Expand All @@ -56,6 +61,7 @@
},
{
"template": "IECC-2024",
"class_of_construction": "Any",
"thermal_bridge_type": "Parapets",
"mitigated_psi_factor": 0.2,
"unmitigated_psi_factor": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
CREATE_ENVELOPE_THERMAL_BRIDGING_REQUIREMENTS_TABLE = """
CREATE TABLE IF NOT EXISTS %s
(id INTEGER PRIMARY KEY,
template TEXT NOT NULL,
template TEXT NOT NULL,
class_of_construction TEXT,
thermal_bridge_type TEXT,
mitigated_psi_factor NUMERIC,
unmitigated_psi_factor NUMERIC,
Expand All @@ -36,6 +37,7 @@
INSERT_A_ENVELOPE_THERMAL_BRIDGING_requirements_RECORD = """
INSERT INTO %s (
template,
class_of_construction,
thermal_bridge_type,
mitigated_psi_factor,
unmitigated_psi_factor,
Expand All @@ -45,11 +47,12 @@
chi_factor_unit,
annotation
)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
"""

RECORD_TEMPLATE = {
"template": "",
"class_of_construction": ""
"thermal_bridge_type": "",
"mitigated_psi_factor": 0.0,
"unmitigated_psi_factor": 0.0,
Expand Down Expand Up @@ -82,6 +85,7 @@ def get_record_info(self):

def validate_record_datatype(self, record):
str_expected = [
"class_of_construction"
"template",
"thermal_bridge_type" "psi_factor_unit",
"chi_factor_unit",
Expand Down

0 comments on commit 4a4d2a6

Please sign in to comment.