|
54 | 54 | ['building_151_n1.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0'], |
55 | 55 | ['building_151_n1.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0'], |
56 | 56 |
|
57 | | - # L100 Audit |
58 | | - # ['L100_Audit.xml', CA_TITLE24, nil, 'v2.2.0'], |
59 | | - # ['L100_Audit.xml', ASHRAE90_1, nil, 'v2.2.0'], |
60 | | - # ['L100_Audit.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0'], |
61 | | - # ['L100_Audit.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0'], |
62 | | - |
63 | 57 | # DC GSA Headquarters |
64 | | - # The CA_TITLE24 version of this fails and is included in the next section |
65 | | - ['DC GSA Headquarters.xml', ASHRAE90_1, nil, nil], |
66 | 58 | ['DC GSA Headquarters.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
67 | 59 |
|
68 | 60 | # DC GSA Headquarters with Climate Zone |
69 | | - ['DC GSA HeadquartersWithClimateZone.xml', CA_TITLE24, nil, nil], |
70 | | - ['DC GSA HeadquartersWithClimateZone.xml', ASHRAE90_1, nil, nil], |
71 | | - ['DC GSA HeadquartersWithClimateZone.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
72 | 61 | ['DC GSA HeadquartersWithClimateZone.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
73 | 62 |
|
| 63 | + # L100 Audit |
| 64 | + # None working |
| 65 | + |
74 | 66 | # BuildingSync Website Valid Schema |
75 | | - ['BuildingSync Website Valid Schema.xml', CA_TITLE24, nil, nil], |
76 | | - ['BuildingSync Website Valid Schema.xml', ASHRAE90_1, nil, nil], |
77 | 67 | ['BuildingSync Website Valid Schema.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
78 | | - ['BuildingSync Website Valid Schema.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
79 | 68 |
|
80 | 69 | # L000_OpenStudio_Pre-Simulaiton-01 |
81 | 70 | ['L000_OpenStudio_Pre-Simulation_01.xml', CA_TITLE24, nil, 'v2.2.0'], |
|
113 | 102 | tests_to_run = [ |
114 | 103 | # file_name, standard, epw_path, schema_version, expected_error_message |
115 | 104 |
|
116 | | - # DC GSA Headquarters |
| 105 | + ##################################### |
| 106 | + ## DC GSA Headquarters |
| 107 | + ['DC GSA Headquarters.xml', ASHRAE90_1, nil, nil, ''], |
| 108 | + # ^^Failure mode: |
| 109 | + # case 2.2: SITE LEVEL city_name and state_name is not nil Washington DC |
| 110 | + # [BuildingSync.GetBCLWeatherFile.download_weather_file_from_city_name] <1> Error, could not find uid for state DC and city Washington. Initial count of weather files: 10. Please try a different weather file. |
| 111 | + # [BuildingSync.Building.set_weather_and_climate_zone] <1> epw_file_path is false: false |
117 | 112 | ['DC GSA Headquarters.xml', CA_TITLE24, nil, nil, "Did not find a class called 'CBES Pre-1978_LargeOffice' to create in"], |
118 | 113 | ['DC GSA Headquarters.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil, "Did not find a class called 'CBES Pre-1978_LargeOffice' to create in"], |
119 | 114 |
|
120 | | - # Golden File |
| 115 | + ##################################### |
| 116 | + ## DC GSA HeadquartersWithClimateZone |
| 117 | + |
| 118 | + ['DC GSA HeadquartersWithClimateZone.xml', ASHRAE90_1, nil, nil, ''], |
| 119 | + ['DC GSA HeadquartersWithClimateZone.xml', CA_TITLE24, nil, nil, ""], |
| 120 | + # ^^Failure mode: |
| 121 | + # case 3: climate zone 2B lat long |
| 122 | + # [BuildingSync.Building.set_weather_and_climate_zone_from_climate_zone] <0> Cannot add design days and weather file for climate zone: 2B, no epw file provided |
| 123 | + # 2B |
| 124 | + # CaliforniaTitle24 |
| 125 | + # |
| 126 | + # NilClass |
| 127 | + # CEC T24-CEC2B |
| 128 | + # setting CA_TITLE24 climate zone to: 2 |
| 129 | + |
| 130 | + ['DC GSA HeadquartersWithClimateZone.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil, "Did not find a class called 'CBES Pre-1978_LargeOffice' to create in"], |
| 131 | + # ^^Failure mode: |
| 132 | + # could not find open studio standard for template CBES Pre-1978 and bldg type: LargeOffice, trying the standard type alone |
| 133 | + |
| 134 | + ##################################### |
| 135 | + ## L100 Audit |
| 136 | + ['L100_Audit.xml', CA_TITLE24, nil, 'v2.2.0', ''], |
| 137 | + ['L100_Audit.xml', ASHRAE90_1, nil, 'v2.2.0', ''], |
| 138 | + ['L100_Audit.xml', CA_TITLE24, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0', ''], |
| 139 | + ['L100_Audit.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0', ''], |
| 140 | + |
| 141 | + ##################################### |
| 142 | + ## BuildingSync Website Valid Schema |
| 143 | + ['BuildingSync Website Valid Schema.xml', ASHRAE90_1, nil, nil], |
| 144 | + # ^^Failure mode: |
| 145 | + # [BuildingSync.LocationElement.read_climate_zone] <0> Element ID: Building001 - Title24 Climate Zone and ASHRAE Climate Zone not found |
| 146 | + |
| 147 | + ['BuildingSync Website Valid Schema.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil], |
| 148 | + # ^^Failure mode: |
| 149 | + # [BuildingSync.LocationElement.read_climate_zone] <0> Element ID: Building001 - Title24 Climate Zone and ASHRAE Climate Zone not found |
| 150 | + |
| 151 | + ['BuildingSync Website Valid Schema.xml', CA_TITLE24, nil, nil, ''], |
| 152 | + |
| 153 | + ##################################### |
| 154 | + ## Golden File |
121 | 155 | ['Golden Test File.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), 'v2.2.0', 'Error: There is more than one (2) building attached to this site in your BuildingSync file.'], |
122 | 156 |
|
123 | | - # AT_example_property_report_25 |
| 157 | + ##################################### |
| 158 | + ## AT_example_property_report_25 |
124 | 159 | ['AT_example_property_report_25.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil, 'Error: There is more than one (3) building attached to this site in your BuildingSync file.'], |
125 | 160 |
|
126 | | - # AT_example_report_332 |
| 161 | + ##################################### |
| 162 | + ## AT_example_report_332 |
127 | 163 | ['AT_example_report_332.xml', ASHRAE90_1, File.join(SPEC_WEATHER_DIR, 'USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw'), nil, 'Occupancy type Food service is not available in the building_and_system_types.json dictionary'] |
128 | 164 | ] |
129 | 165 | tests_to_run.each do |test| |
|
0 commit comments