Skip to content

Commit

Permalink
fix(tests): Update Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Mar 8, 2023
1 parent 1231bf5 commit 50efa98
Show file tree
Hide file tree
Showing 7 changed files with 336 additions and 336 deletions.
2 changes: 1 addition & 1 deletion _testing_to_WUFI.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
SOURCE_FILES = [SOURCE_DIR / file for file in SOURCE_FILE_NAMES]
TARGET_DIR = pathlib.Path("tests", "_reference_xml")

# -- Temp
# -- Temp"
SOURCE_FILES = [
pathlib.Path(
"/Users/em/Dropbox/bldgtyp-00/00_PH_Tools/PHX/sample/hbjson/DOWNEY_HOME_230308.hbjson"
Expand Down
4 changes: 2 additions & 2 deletions tests/_reference_xml/Default_Model_Single_Zone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<Components count="3">
<Component index="0">
<IdentNr>5</IdentNr>
<Name>Room_3_31c0c9f6..Face4</Name>
<Name>Room_1_919b897c..Face4</Name>
<Visual>true</Visual>
<Type>1</Type>
<IdentNrColorI>12</IdentNrColorI>
Expand All @@ -219,7 +219,7 @@
</Component>
<Component index="1">
<IdentNr>6</IdentNr>
<Name>Room_3_31c0c9f6..Face5</Name>
<Name>Room_1_919b897c..Face5</Name>
<Visual>true</Visual>
<Type>1</Type>
<IdentNrColorI>7</IdentNrColorI>
Expand Down
44 changes: 22 additions & 22 deletions tests/_reference_xml/Multi_Room_Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@
</Component>
<Component index="4">
<IdentNr>49</IdentNr>
<Name>Shade_14d16200</Name>
<Name>Shade_993438fc</Name>
<Visual>true</Visual>
<Type>1</Type>
<IdentNrColorI>1</IdentNrColorI>
Expand All @@ -680,7 +680,7 @@
</Component>
<Component index="5">
<IdentNr>50</IdentNr>
<Name>Shade_56443c46</Name>
<Name>Shade_f670adf0</Name>
<Visual>true</Visual>
<Type>1</Type>
<IdentNrColorI>1</IdentNrColorI>
Expand All @@ -702,7 +702,7 @@
<IdentNr>1</IdentNr>
<RoomsVentilation count="2">
<Room index="0">
<Name>101-Room_1</Name>
<Name>101-Room_3</Name>
<Type>99</Type>
<IdentNrUtilizationPatternVent>1</IdentNrUtilizationPatternVent>
<IdentNrVentilationUnit>1</IdentNrVentilationUnit>
Expand All @@ -713,7 +713,7 @@
<DesignVolumeFlowRateExhaust unit="m³/h">13.71</DesignVolumeFlowRateExhaust>
</Room>
<Room index="1">
<Name>102-Room_2</Name>
<Name>102-Room_4</Name>
<Type>99</Type>
<IdentNrUtilizationPatternVent>1</IdentNrUtilizationPatternVent>
<IdentNrVentilationUnit>1</IdentNrVentilationUnit>
Expand All @@ -726,14 +726,14 @@
</RoomsVentilation>
<LoadsPersonsPH count="2">
<LoadPerson index="0">
<Name>101-Room_1</Name>
<Name>101-Room_3</Name>
<IdentNrUtilizationPattern>1</IdentNrUtilizationPattern>
<ChoiceActivityPersons>3</ChoiceActivityPersons>
<NumberOccupants>1</NumberOccupants>
<FloorAreaUtilizationZone unit="">9.0</FloorAreaUtilizationZone>
</LoadPerson>
<LoadPerson index="1">
<Name>102-Room_2</Name>
<Name>102-Room_4</Name>
<IdentNrUtilizationPattern>1</IdentNrUtilizationPattern>
<ChoiceActivityPersons>3</ChoiceActivityPersons>
<NumberOccupants>1</NumberOccupants>
Expand Down Expand Up @@ -826,56 +826,56 @@
<ExhaustVents count="0"/>
<ThermalBridges count="8">
<ThermalBridge index="0">
<Name>_unnamed_bldg_segment__1bfe9c29</Name>
<Name>_unnamed_bldg_segment__3316a4f1</Name>
<Type>-15</Type>
<Length>13.416407864998739</Length>
<Length>18.0</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="1">
<Name>_unnamed_bldg_segment__3ccfd8c2</Name>
<Name>_unnamed_bldg_segment__552fea2c</Name>
<Type>-15</Type>
<Length>10.733126291998989</Length>
<Length>9.391485505499118</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="2">
<Name>_unnamed_bldg_segment__7ce04f2b</Name>
<Name>_unnamed_bldg_segment__b765facf</Name>
<Type>-15</Type>
<Length>14.0</Length>
<Length>22.0</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="3">
<Name>_unnamed_bldg_segment__86d2380e</Name>
<Name>_unnamed_bldg_segment__bac20572</Name>
<Type>-15</Type>
<Length>18.0</Length>
<Length>14.0</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="4">
<Name>_unnamed_bldg_segment__9cc643da</Name>
<Name>_unnamed_bldg_segment__c2fa42b4</Name>
<Type>-15</Type>
<Length>22.0</Length>
<Length>16.0</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="5">
<Name>_unnamed_bldg_segment__a6658bb5</Name>
<Name>_unnamed_bldg_segment__ebcf0177</Name>
<Type>-15</Type>
<Length>16.0</Length>
<Length>10.733126291998989</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="6">
<Name>_unnamed_bldg_segment__b3f0a93e</Name>
<Name>_unnamed_bldg_segment__ec8e4532</Name>
<Type>-15</Type>
<Length>9.391485505499118</Length>
<Length>13.416407864998739</Length>
<PsiValue>0.01</PsiValue>
<IdentNrOptionalClimate>-1</IdentNrOptionalClimate>
</ThermalBridge>
<ThermalBridge index="7">
<Name>_unnamed_bldg_segment__bb2f2c18</Name>
<Name>_unnamed_bldg_segment__ef601f9c</Name>
<Type>-15</Type>
<Length>9.391485505499118</Length>
<PsiValue>0.01</PsiValue>
Expand Down Expand Up @@ -1167,7 +1167,7 @@
</PH_Parameters>
</Device>
<Device index="1">
<Name>a2cf40ba-1310-4b1c-a6cd-a16f63df5d02</Name>
<Name>5427684d-25a4-4ac6-862c-bd6aab34c352</Name>
<IdentNr>1</IdentNr>
<SystemType>5</SystemType>
<TypeDevice>5</TypeDevice>
Expand Down
Binary file modified tests/_source_gh/hbph_test_models.gh
Binary file not shown.
80 changes: 40 additions & 40 deletions tests/_source_hbjson/Default_Model_Single_Zone.hbjson
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"PHIUS2021_cooling_load": 10.0
},
"name": "Unnamed_Bldg_Segment",
"identifier": "6c05a09c-6cbc-4423-b84f-0c1a280165d5",
"identifier": "a02ca59b-8333-46c0-beea-acf12f1acb35",
"site": {
"climate": {
"monthly_radiation": {
Expand Down Expand Up @@ -89,8 +89,8 @@
"june": 0.0,
"november": 0.0
},
"identifier": "b9cf564b-16ac-4125-b671-5d225150a0ea",
"display_name": "b9cf564b-16ac-4125-b671-5d225150a0ea",
"identifier": "5e0af0b2-4d29-43fc-98f5-6358421e8b85",
"display_name": "5e0af0b2-4d29-43fc-98f5-6358421e8b85",
"glob": {
"february": 0.0,
"july": 0.0,
Expand Down Expand Up @@ -136,8 +136,8 @@
"dewpoint": null,
"rad_west": 0.0,
"ground_temp": null,
"identifier": "8480964c-dcd7-4172-8be5-6a65ad859b07",
"display_name": "8480964c-dcd7-4172-8be5-6a65ad859b07",
"identifier": "100f5288-23cb-4b2c-9936-41949aff99bb",
"display_name": "100f5288-23cb-4b2c-9936-41949aff99bb",
"rad_south": 0.0,
"rad_north": 0.0,
"sky_temp": null
Expand All @@ -149,8 +149,8 @@
"dewpoint": null,
"rad_west": 0.0,
"ground_temp": null,
"identifier": "a229215c-edb4-403b-ac18-b544b22ba17c",
"display_name": "a229215c-edb4-403b-ac18-b544b22ba17c",
"identifier": "4e37e8f5-4526-435f-870e-374f451161ae",
"display_name": "4e37e8f5-4526-435f-870e-374f451161ae",
"rad_south": 0.0,
"rad_north": 0.0,
"sky_temp": null
Expand All @@ -162,23 +162,23 @@
"dewpoint": null,
"rad_west": 0.0,
"ground_temp": null,
"identifier": "fae3a6cc-b80c-4996-adca-7d1cc151d521",
"display_name": "fae3a6cc-b80c-4996-adca-7d1cc151d521",
"identifier": "3ba5aa72-8405-4801-9bbd-640a5b219d15",
"display_name": "3ba5aa72-8405-4801-9bbd-640a5b219d15",
"rad_south": 0.0,
"rad_north": 0.0,
"sky_temp": null
},
"identifier": "44d2bc09-5c39-49aa-ac35-63e1f46eef32",
"display_name": "44d2bc09-5c39-49aa-ac35-63e1f46eef32",
"identifier": "9f64e6de-d1e4-4f71-b491-b1d25cdc1f39",
"display_name": "9f64e6de-d1e4-4f71-b491-b1d25cdc1f39",
"cooling_load_2": {
"temp": 0.0,
"rad_global": 0.0,
"rad_east": 0.0,
"dewpoint": null,
"rad_west": 0.0,
"ground_temp": null,
"identifier": "25577370-b5b8-4fa9-b7ec-c33467c84b2d",
"display_name": "25577370-b5b8-4fa9-b7ec-c33467c84b2d",
"identifier": "286aa8a0-d711-45b1-9ae7-eb8993760d92",
"display_name": "286aa8a0-d711-45b1-9ae7-eb8993760d92",
"rad_south": 0.0,
"rad_north": 0.0,
"sky_temp": null
Expand Down Expand Up @@ -227,8 +227,8 @@
"june": 0.0,
"november": 0.0
},
"identifier": "dd8b5641-37e8-4ebd-ad0b-d7d964cdb3fa",
"display_name": "dd8b5641-37e8-4ebd-ad0b-d7d964cdb3fa",
"identifier": "152b5516-b01f-4441-b0d3-a11fa2aa5eea",
"display_name": "152b5516-b01f-4441-b0d3-a11fa2aa5eea",
"dewpoints": {
"february": 0.0,
"july": 0.0,
Expand All @@ -244,7 +244,7 @@
"november": 0.0
}
},
"identifier": "3f6160e6-219b-461f-abfa-f8c4ac31980a",
"identifier": "e9c44b2f-f761-4b38-aed9-dff61d1a2388",
"display_name": "New York",
"summer_daily_temperature_swing": 8.0,
"station_elevation": 0.0
Expand All @@ -254,17 +254,17 @@
"latitude": 40.600000000000001,
"longitude": -73.799999999999997,
"hours_from_UTC": -4,
"identifier": "35da7c05-410e-4047-91ae-ea0a10bf476c",
"display_name": "35da7c05-410e-4047-91ae-ea0a10bf476c",
"identifier": "b13e2e20-eb55-46e2-a7a4-95cbe8a3b807",
"display_name": "b13e2e20-eb55-46e2-a7a4-95cbe8a3b807",
"climate_zone": 1
},
"identifier": "dcb2a312-82c3-48f2-a90d-75a7fa5616f4",
"display_name": "dcb2a312-82c3-48f2-a90d-75a7fa5616f4",
"identifier": "386982c4-3981-49d5-8284-b36c468e91bb",
"display_name": "386982c4-3981-49d5-8284-b36c468e91bb",
"phpp_library_codes": {
"country_code": "US-United States of America",
"region_code": "New York",
"dataset_name": "US0055b-New York",
"identifier": "13a794e8-fef9-46b4-8100-a707a41ed741",
"identifier": "707df99e-718f-441d-a04f-159ed8837317",
"display_name": "US0055b-New York"
}
},
Expand Down Expand Up @@ -312,7 +312,7 @@
},
"type": "IdealAirSystemProperties"
},
"identifier": "Room_3_31c0c9f6 Ideal Loads Air System",
"identifier": "Room_1_919b897c Ideal Loads Air System",
"cooling_air_temperature": 13.0,
"demand_controlled_ventilation": false,
"cooling_limit": {
Expand Down Expand Up @@ -2109,7 +2109,7 @@
"ph": {
"type": "PeoplePhProperties",
"dwellings": {
"identifier": "a2276caa-beed-454f-bf9e-7c6ecb460ef2",
"identifier": "169e3bac-9059-49fc-ade6-510ce9364eb1",
"num_dwellings": 1
},
"id_num": 0,
Expand Down Expand Up @@ -2312,18 +2312,18 @@
}
},
"version": "1.53.1",
"identifier": "unnamed_e12e70d6",
"identifier": "unnamed_f1a12fa7",
"display_name": "unnamed",
"rooms": [
{
"properties": {
"ph": {
"type": "RoomPhPropertiesAbridged",
"ph_bldg_segment_id": "6c05a09c-6cbc-4423-b84f-0c1a280165d5",
"ph_bldg_segment_id": "a02ca59b-8333-46c0-beea-acf12f1acb35",
"spaces": []
},
"energy": {
"hvac": "Room_3_31c0c9f6 Ideal Loads Air System",
"hvac": "Room_1_919b897c Ideal Loads Air System",
"type": "RoomEnergyPropertiesAbridged",
"program_type": "Generic Office Program"
},
Expand All @@ -2332,8 +2332,8 @@
"type": "RoomRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6",
"display_name": "Room_3",
"identifier": "Room_1_919b897c",
"display_name": "Room_1",
"faces": [
{
"boundary_condition": {
Expand Down Expand Up @@ -2401,8 +2401,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face0",
"display_name": "Room_3_31c0c9f6..Face0",
"identifier": "Room_1_919b897c..Face0",
"display_name": "Room_1_919b897c..Face0",
"type": "Face"
},
{
Expand Down Expand Up @@ -2471,8 +2471,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face1",
"display_name": "Room_3_31c0c9f6..Face1",
"identifier": "Room_1_919b897c..Face1",
"display_name": "Room_1_919b897c..Face1",
"type": "Face"
},
{
Expand Down Expand Up @@ -2541,8 +2541,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face2",
"display_name": "Room_3_31c0c9f6..Face2",
"identifier": "Room_1_919b897c..Face2",
"display_name": "Room_1_919b897c..Face2",
"type": "Face"
},
{
Expand Down Expand Up @@ -2611,8 +2611,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face3",
"display_name": "Room_3_31c0c9f6..Face3",
"identifier": "Room_1_919b897c..Face3",
"display_name": "Room_1_919b897c..Face3",
"type": "Face"
},
{
Expand Down Expand Up @@ -2676,8 +2676,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face4",
"display_name": "Room_3_31c0c9f6..Face4",
"identifier": "Room_1_919b897c..Face4",
"display_name": "Room_1_919b897c..Face4",
"type": "Face"
},
{
Expand Down Expand Up @@ -2746,8 +2746,8 @@
"type": "FaceRadiancePropertiesAbridged"
}
},
"identifier": "Room_3_31c0c9f6..Face5",
"display_name": "Room_3_31c0c9f6..Face5",
"identifier": "Room_1_919b897c..Face5",
"display_name": "Room_1_919b897c..Face5",
"type": "Face"
}
],
Expand Down
Loading

0 comments on commit 50efa98

Please sign in to comment.