openstudio-standards 0.8.5 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/data/standards/test_performance_expected_dd_results.csv +90 -90
- data/lib/openstudio-standards/btap/activity.rb +858 -61
- data/lib/openstudio-standards/btap/attributes.rb +297 -103
- data/lib/openstudio-standards/btap/bridging.rb +1335 -593
- data/lib/openstudio-standards/btap/btap.rb +60 -181
- data/lib/openstudio-standards/btap/carbon/btap_carbon.rb +199 -142
- data/lib/openstudio-standards/btap/common/constructions.json +1275 -0
- data/lib/openstudio-standards/btap/common/costs.csv +1969 -0
- data/lib/openstudio-standards/btap/common/costs_local_factors.csv +2315 -0
- data/lib/openstudio-standards/btap/common/materials_glazing.csv +61 -0
- data/lib/openstudio-standards/btap/{common_resources → common}/materials_hvac.csv +1685 -1685
- data/lib/openstudio-standards/btap/{common_resources → common}/materials_lighting.csv +266 -266
- data/lib/openstudio-standards/btap/common/materials_opaque.csv +214 -0
- data/lib/openstudio-standards/btap/common/necb_building_types.csv +35 -0
- data/lib/openstudio-standards/btap/common/necb_space_types.csv +110 -0
- data/lib/openstudio-standards/btap/common/thermal_bridging.csv +73 -0
- data/lib/openstudio-standards/btap/costing/btap_costing.rb +346 -429
- data/lib/openstudio-standards/btap/costing/database.rb +104 -0
- data/lib/openstudio-standards/btap/costing/daylighting_sensor_control_costing.rb +356 -344
- data/lib/openstudio-standards/btap/costing/dcv_costing.rb +282 -296
- data/lib/openstudio-standards/btap/costing/envelope_costing.rb +179 -192
- data/lib/openstudio-standards/btap/costing/heating_cooling_costing.rb +2477 -2316
- data/lib/openstudio-standards/btap/costing/led_lighting_costing.rb +127 -142
- data/lib/openstudio-standards/btap/costing/lighting_costing.rb +216 -198
- data/lib/openstudio-standards/btap/costing/nv_costing.rb +522 -523
- data/lib/openstudio-standards/btap/costing/pv_ground_costing.rb +649 -649
- data/lib/openstudio-standards/btap/costing/shw_costing.rb +626 -625
- data/lib/openstudio-standards/btap/costing/thermal_bridging_costing.rb +72 -0
- data/lib/openstudio-standards/btap/costing/ventilation_costing.rb +2363 -2361
- data/lib/openstudio-standards/btap/deprecated.rb +1033 -0
- data/lib/openstudio-standards/btap/envelope.rb +313 -572
- data/lib/openstudio-standards/btap/fileio.rb +152 -1070
- data/lib/openstudio-standards/btap/geometry.rb +486 -766
- data/lib/openstudio-standards/btap/linear_regression.rb +130 -0
- data/lib/openstudio-standards/btap/paths.rb +46 -0
- data/lib/openstudio-standards/btap/qaqc/analysis.rb +163 -0
- data/lib/openstudio-standards/btap/qaqc/data.rb +2293 -0
- data/lib/openstudio-standards/btap/qaqc/datapoint.rb +641 -0
- data/lib/openstudio-standards/btap/schedules.rb +11 -611
- data/lib/openstudio-standards/btap/structure.rb +574 -189
- data/lib/openstudio-standards/constructions/materials/information.rb +1 -1
- data/lib/openstudio-standards/create_typical/create_typical.rb +1 -1
- data/lib/openstudio-standards/exterior_lighting/create.rb +135 -85
- data/lib/openstudio-standards/exterior_lighting/data/typical_exterior_lighting.json +20 -0
- data/lib/openstudio-standards/exterior_lighting/information.rb +23 -2
- data/lib/openstudio-standards/geometry/create.rb +7 -3
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Model.rb +3 -2
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Model.rb +3 -2
- data/lib/openstudio-standards/prototypes/common/data/thermostat_schedule_lookup.json +84 -84
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb +4 -4
- data/lib/openstudio-standards/refrigeration/create_walkin.rb +45 -5
- data/lib/openstudio-standards/refrigeration/data/refrigerated_walkins.csv +75 -75
- data/lib/openstudio-standards/schedules/parametric.rb +6 -0
- data/lib/openstudio-standards/service_water_heating/create_typical.rb +10 -3
- data/lib/openstudio-standards/service_water_heating/create_water_heating_loop.rb +30 -14
- data/lib/openstudio-standards/service_water_heating/information.rb +4 -1
- data/lib/openstudio-standards/sql_file/unmet_hours.rb +2 -1
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +3 -1
- data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +3 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.boilers.json +12 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.construction_properties.json +18432 -3072
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.boilers.json +26 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.construction_properties.json +8532 -1422
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.boilers.json +26 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.construction_properties.json +8532 -1422
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.boilers.json +16 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.computer_room_acs.json +30 -30
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.construction_properties.json +7560 -1260
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.PumpVariableSpeed.rb +1 -2
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.boilers.json +16 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.construction_properties.json +7560 -1260
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.PumpVariableSpeed.rb +1 -2
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.boilers.json +22 -0
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.construction_properties.json +7236 -1206
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.furnaces.json +223 -19
- data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.schedules.json +37 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/data/ashrae_90_1_prm_2019.boilers.json +3 -0
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/data/ashrae_90_1_prm_2019.construction_properties.json +6900 -1150
- data/lib/openstudio-standards/standards/cbes/data/cbes.schedules.json +1 -1
- data/lib/openstudio-standards/standards/deer/data/deer.schedules.json +1 -1
- data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/data/surface_thermal_transmittance.json +76 -40
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/surface_thermal_transmittance.json +76 -40
- data/lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb +6 -4
- data/lib/openstudio-standards/standards/necb/NECB2011/NECB2011_QAQC.json +2988 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/autozone.rb +25 -3
- data/lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb +672 -534
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/Hospital.osm +1791 -1792
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/LEEPMultiTower.osm +7 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/LEEPTownHouse.osm +7 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/LargeHotel.osm +5 -6
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/LargeOffice.osm +8 -9
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernEducation.osm +10 -4
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernHealthCare.osm +14 -15
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/Outpatient.osm +7 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/data/surface_thermal_transmittance.json +76 -40
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb +14 -6
- data/lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb +542 -130
- data/lib/openstudio-standards/standards/necb/NECB2011/qaqc/necb_qaqc.rb +30 -63
- data/lib/openstudio-standards/standards/necb/NECB2011/service_water_heating.rb +7 -2
- data/lib/openstudio-standards/standards/necb/NECB2015/data/surface_thermal_transmittance.json +90 -0
- data/lib/openstudio-standards/standards/necb/NECB2015/necb_2015.rb +8 -6
- data/lib/openstudio-standards/standards/necb/NECB2017/data/surface_thermal_transmittance.json +76 -40
- data/lib/openstudio-standards/standards/necb/NECB2017/necb_2017.rb +2 -1
- data/lib/openstudio-standards/standards/necb/NECB2020/building_envelope.rb +0 -117
- data/lib/openstudio-standards/standards/necb/NECB2020/data/surface_thermal_transmittance.json +76 -45
- data/lib/openstudio-standards/standards/necb/NECB2020/necb_2020.rb +218 -0
- data/lib/openstudio-standards/standards/necb/common/construction_defaults.osm +12 -7
- data/lib/openstudio-standards/standards/standard.rb +1 -1
- data/lib/openstudio-standards/version.rb +1 -1
- data/lib/openstudio-standards.rb +9 -4
- metadata +59 -66
- data/data/inventory/thermal_bridging.csv +0 -90
- data/data/standards/OpenStudio_Standards-ashrae_90_1-ALL-comstock(space_types).xlsx +0 -0
- data/data/standards/openstudio_standards_duplicates_log.csv +0 -7962
- data/lib/openstudio-standards/btap/NECB_building_types.csv +0 -35
- data/lib/openstudio-standards/btap/NECB_space_types.csv +0 -109
- data/lib/openstudio-standards/btap/WeatherData1.json +0 -2110
- data/lib/openstudio-standards/btap/WeatherData1.xlsx +0 -0
- data/lib/openstudio-standards/btap/btap_result.rb +0 -1144
- data/lib/openstudio-standards/btap/btap_test_helper.rb +0 -86
- data/lib/openstudio-standards/btap/common_paths.rb +0 -81
- data/lib/openstudio-standards/btap/common_resources/ConstructionProperties.csv +0 -52
- data/lib/openstudio-standards/btap/common_resources/Constructions.csv +0 -37
- data/lib/openstudio-standards/btap/common_resources/construction_sets.csv +0 -1270
- data/lib/openstudio-standards/btap/common_resources/constructions_glazing.csv +0 -121
- data/lib/openstudio-standards/btap/common_resources/constructions_opaque.csv +0 -2256
- data/lib/openstudio-standards/btap/common_resources/costs.csv +0 -1897
- data/lib/openstudio-standards/btap/common_resources/costs_local_factors.csv +0 -2315
- data/lib/openstudio-standards/btap/common_resources/materials_glazing.csv +0 -35
- data/lib/openstudio-standards/btap/common_resources/materials_opaque.csv +0 -164
- data/lib/openstudio-standards/btap/costing/btap_measure_helper.rb +0 -359
- data/lib/openstudio-standards/btap/costing/btap_workflow.rb +0 -117
- data/lib/openstudio-standards/btap/costing/copy_test_results_files_to_expected_results.rb +0 -11
- data/lib/openstudio-standards/btap/costing/cost_building_from_file.rb +0 -136
- data/lib/openstudio-standards/btap/costing/costing_database_wrapper.rb +0 -173
- data/lib/openstudio-standards/btap/costing/dummy.epw +0 -8768
- data/lib/openstudio-standards/btap/costing/dummy.osm +0 -5320
- data/lib/openstudio-standards/btap/costing/neb_end_use_prices.csv +0 -42
- data/lib/openstudio-standards/btap/costing/necb_2011_spacetype_info.csv +0 -225
- data/lib/openstudio-standards/btap/costing/necb_reference_runs.csv +0 -28705
- data/lib/openstudio-standards/btap/costing/parallel_tests.rb +0 -92
- data/lib/openstudio-standards/btap/costing/test_list.txt +0 -15
- data/lib/openstudio-standards/btap/costing/test_run_all_test_locally.rb +0 -27
- data/lib/openstudio-standards/btap/costing/test_run_costing_tests.rb +0 -80
- data/lib/openstudio-standards/btap/necb_2011_spacetype_info.csv +0 -225
- data/lib/openstudio-standards/btap/utilities/Add_template_field_to_json.rb +0 -22
- data/lib/openstudio-standards/btap/utilities/convert_surfaces_to_adiabatic_necb_8426.rb +0 -204
- data/lib/openstudio-standards/btap/utilities/generate_space_types.rb +0 -8
- data/lib/openstudio-standards/btap/utilities/necb_to_epw_map.rb +0 -50
- data/lib/openstudio-standards/btap/utilities/os_sim_extract.rb +0 -48
- data/lib/openstudio-standards/btap/utilities/rename_surfaces.rb +0 -24
- data/lib/openstudio-standards/btap/utilities/round_surf_coords.rb +0 -32
- data/lib/openstudio-standards/btap/utilities/sched_create.rb +0 -145
- data/lib/openstudio-standards/btap/utilities/set_mult_to_adiabatic.rb +0 -53
- data/lib/openstudio-standards/btap/utilities/space_type.rb +0 -78
- data/lib/openstudio-standards/btap/utilities/weatherData1_xlsx_to_json.rb +0 -56
- data/lib/openstudio-standards/btap/vintagizer.rb +0 -161
- data/lib/openstudio-standards/btap/visualization.rb +0 -72
- data/lib/openstudio-standards/standards/necb/NECB2011/data/necb_2011_spacetype_info.csv +0 -225
- data/lib/openstudio-standards/standards/necb/common/btap_analysis.rb +0 -79
- data/lib/openstudio-standards/standards/necb/common/btap_data.rb +0 -2656
- data/lib/openstudio-standards/standards/necb/common/btap_datapoint.rb +0 -653
- data/lib/openstudio-standards/standards/necb/common/necb_reference_runs.csv +0 -28705
- data/lib/openstudio-standards/standards/necb/common/utility_pricing_2025-02-20.csv +0 -92
- /data/lib/openstudio-standards/btap/{common_resources → common}/carbon_frame.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/carbon_glazing.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/carbon_opaque.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/hvac_vent_ahu.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/lighting.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/lighting_sets.csv +0 -0
- /data/lib/openstudio-standards/btap/{common_resources → common}/locations.csv +0 -0
- /data/lib/openstudio-standards/btap/{costing → common}/mech_sizing.json +0 -0
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
require 'fileutils'
|
|
2
|
-
require 'parallel'
|
|
3
|
-
require 'open3'
|
|
4
|
-
|
|
5
|
-
TestOutputFolder = File.join(File.dirname(__FILE__), 'local_test_output')
|
|
6
|
-
ProcessorsUsed = (Parallel.processor_count * 4 / 5).floor
|
|
7
|
-
#ProcessorsUsed = 20
|
|
8
|
-
|
|
9
|
-
class String
|
|
10
|
-
# colorization
|
|
11
|
-
def colorize(color_code)
|
|
12
|
-
"\e[#{color_code}m#{self}\e[0m"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def red
|
|
16
|
-
colorize(31)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def green
|
|
20
|
-
colorize(32)
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def yellow
|
|
24
|
-
colorize(33)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def blue
|
|
28
|
-
colorize(34)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def pink
|
|
32
|
-
colorize(35)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def light_blue
|
|
36
|
-
colorize(36)
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def write_results(result, test_file)
|
|
42
|
-
test_file_output = File.join(TestOutputFolder, "#{File.basename(test_file)}_test_output.json")
|
|
43
|
-
File.delete(test_file_output) if File.exist?(test_file_output)
|
|
44
|
-
test_result = false
|
|
45
|
-
if result[2].success?
|
|
46
|
-
puts "PASSED: #{test_file}".green
|
|
47
|
-
return true
|
|
48
|
-
else
|
|
49
|
-
#store output for failed run.
|
|
50
|
-
output = {"test" => test_file,
|
|
51
|
-
"test_result" => test_result,
|
|
52
|
-
"output" => {
|
|
53
|
-
"status" => result[2],
|
|
54
|
-
"std_out" => result[0].split(/\r?\n/),
|
|
55
|
-
"std_err" => result[1].split(/\r?\n/)
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
#puts test_file_output
|
|
60
|
-
File.open(test_file_output, 'w') {|f| f.write(JSON.pretty_generate(output))}
|
|
61
|
-
puts "FAILED: #{test_file_output}".red
|
|
62
|
-
return false
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
class ParallelTests
|
|
67
|
-
|
|
68
|
-
def run(file_list)
|
|
69
|
-
did_all_tests_pass = true
|
|
70
|
-
|
|
71
|
-
@full_file_list = nil
|
|
72
|
-
FileUtils.rm_rf(TestOutputFolder)
|
|
73
|
-
FileUtils.mkpath(TestOutputFolder)
|
|
74
|
-
|
|
75
|
-
# load test files from file.
|
|
76
|
-
@full_file_list = file_list.shuffle
|
|
77
|
-
|
|
78
|
-
puts "Running #{@full_file_list.size} tests suites in parallel using #{ProcessorsUsed} of available cpus."
|
|
79
|
-
puts "To increase or decrease the ProcessorsUsed, please edit the test/test_run_all_locally.rb file."
|
|
80
|
-
timings_json = Hash.new()
|
|
81
|
-
Parallel.each_with_index(@full_file_list, in_threads: (ProcessorsUsed), progress: "Progress :") do |test_file, index|
|
|
82
|
-
file_name = test_file.gsub(/^.+(openstudio-standards\/test\/)/, '')
|
|
83
|
-
timings_json[file_name.to_s] = {}
|
|
84
|
-
timings_json[file_name.to_s]['start'] = Time.now.to_i
|
|
85
|
-
did_all_tests_pass = false unless write_results(Open3.capture3("bundle exec ruby #{test_file}"), test_file)
|
|
86
|
-
timings_json[file_name.to_s]['end'] = Time.now.to_i
|
|
87
|
-
timings_json[file_name.to_s]['total'] = timings_json[file_name.to_s]['end'] - timings_json[file_name.to_s]['start']
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
return did_all_tests_pass
|
|
91
|
-
end
|
|
92
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
test/btap_costing/tests/BtapResults_daylighting_sensor_control_Test.rb
|
|
2
|
-
test/btap_costing/tests/BtapResults_dcv_Test.rb
|
|
3
|
-
test/btap_costing/tests/BtapResults_DX_Adv_Test.rb
|
|
4
|
-
test/btap_costing/tests/BtapResults_HS08_CCASHP_VRF_Test.rb
|
|
5
|
-
test/btap_costing/tests/BtapResults_HS09_CCASHP_Baseboard_Test.rb
|
|
6
|
-
test/btap_costing/tests/BtapResults_HS14_CGSHP_FanCoils_Test.rb
|
|
7
|
-
test/btap_costing/tests/BtapResults_insuite_central_doas_Test.rb
|
|
8
|
-
test/btap_costing/tests/BtapResults_led_lighting_Test.rb
|
|
9
|
-
test/btap_costing/tests/BtapResults_nv_Test.rb
|
|
10
|
-
test/btap_costing/tests/BtapResults_pv_ground_Test.rb
|
|
11
|
-
test/btap_costing/tests/BtapResults_shw_scaling_Test.rb
|
|
12
|
-
test/btap_costing/tests/BtapResults_SHW_Test.rb
|
|
13
|
-
test/btap_costing/tests/BtapResults_Test.rb
|
|
14
|
-
test/btap_costing/tests/BtapResultsVintage_Test.rb
|
|
15
|
-
test/btap_costing/tests/BtapResults_vsd_chiller_Test.rb
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'fileutils'
|
|
2
|
-
require 'parallel'
|
|
3
|
-
require 'open3'
|
|
4
|
-
require 'minitest/autorun'
|
|
5
|
-
require 'json'
|
|
6
|
-
require_relative './parallel_tests'
|
|
7
|
-
require_relative '../btap_test_helper' # Required for the cached switch
|
|
8
|
-
|
|
9
|
-
class RunAllTests < Minitest::Test
|
|
10
|
-
def test_all()
|
|
11
|
-
full_file_list = nil
|
|
12
|
-
test_list_file = File.expand_path(File.join(__dir__, 'test_list.txt'))
|
|
13
|
-
root_dir = File.expand_path("../../../../", __dir__)
|
|
14
|
-
if File.exist?(test_list_file)
|
|
15
|
-
puts test_list_file
|
|
16
|
-
# load test files from file.
|
|
17
|
-
full_file_list = File.readlines(test_list_file).shuffle
|
|
18
|
-
full_file_list.map! {|file| "#{root_dir}/#{file.strip}"}
|
|
19
|
-
# Select only .rb files that exist
|
|
20
|
-
full_file_list.select! {|file| file.include?('rb') && File.exist?(file)}
|
|
21
|
-
else
|
|
22
|
-
puts "Could not find list of files to test at #{test_list_file}"
|
|
23
|
-
return false
|
|
24
|
-
end
|
|
25
|
-
assert(ParallelTests.new.run(full_file_list), "Some tests failed please ensure all test pass and tests have been updated to reflect the changes you expect before issuing a pull request")
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
require 'fileutils'
|
|
2
|
-
require 'parallel'
|
|
3
|
-
require 'open3'
|
|
4
|
-
require 'minitest/autorun'
|
|
5
|
-
require 'json'
|
|
6
|
-
require_relative './parallel_tests'
|
|
7
|
-
TestListFile = File.join(File.dirname(__FILE__), 'local_tests.txt')
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class RunAllCostTests < Minitest::Test
|
|
11
|
-
def test_costing_all()
|
|
12
|
-
|
|
13
|
-
# The OpenStudio v3.2.1 CLI has issues so running the tests by calling the methods directly
|
|
14
|
-
#test_cli = File.join(__dir__, "measures", "btap_results", "tests", "test_helper.rb")
|
|
15
|
-
test_cli = File.join(__dir__, "btap_results", "tests", "test_helper_nocli.rb")
|
|
16
|
-
building_types = [
|
|
17
|
-
#'Hospital',
|
|
18
|
-
#'Outpatient',
|
|
19
|
-
'HighriseApartment',
|
|
20
|
-
'SmallHotel',
|
|
21
|
-
'LargeHotel',
|
|
22
|
-
'LowriseApartment',
|
|
23
|
-
'MidriseApartment',
|
|
24
|
-
'SecondarySchool',
|
|
25
|
-
'LargeOffice',
|
|
26
|
-
'MediumOffice',
|
|
27
|
-
'PrimarySchool',
|
|
28
|
-
'RetailStandalone',
|
|
29
|
-
'RetailStripmall',
|
|
30
|
-
'SmallOffice',
|
|
31
|
-
'Warehouse',
|
|
32
|
-
'FullServiceRestaurant',
|
|
33
|
-
'QuickServiceRestaurant',
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
epw_files = [
|
|
37
|
-
#"CAN_BC_Vancouver.Intl.AP.718920_CWEC2020.epw",
|
|
38
|
-
#"CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw",
|
|
39
|
-
#"CAN_AB_Edmonton.Intl.AP.711230_CWEC2020.epw",
|
|
40
|
-
#"CAN_AB_Fort.Mcmurray.AP.716890_CWEC2020.epw",
|
|
41
|
-
#"CAN_NS_Halifax.Dockyard.713280_CWEC2020.epw",
|
|
42
|
-
#"CAN_QC_Montreal.Intl.AP.716270_CWEC2020.epw",
|
|
43
|
-
#"CAN_ON_Toronto.Intl.AP.716240_CWEC2020.epw",
|
|
44
|
-
"CAN_NT_Yellowknife.AP.719360_CWEC2020.epw"
|
|
45
|
-
]
|
|
46
|
-
|
|
47
|
-
# NECB2015 will work after openstudio-standards/tree/nrcan_48
|
|
48
|
-
# has been pulled into nrcan
|
|
49
|
-
# NOTE: Only use one template at a time!!!!!!!!! If more than one selected the test will fail!!!!!!
|
|
50
|
-
templates = [
|
|
51
|
-
#"BTAPPRE1980",
|
|
52
|
-
"BTAP1980TO2010",
|
|
53
|
-
"NECB2011",
|
|
54
|
-
"NECB2015",
|
|
55
|
-
"NECB2017",
|
|
56
|
-
"NECB2020"
|
|
57
|
-
]
|
|
58
|
-
fuels = [
|
|
59
|
-
'NaturalGas',
|
|
60
|
-
'Electricity',
|
|
61
|
-
'NaturalGasHPGasBackup'
|
|
62
|
-
]
|
|
63
|
-
# Test list to pass to parallel tester.
|
|
64
|
-
test_list = []
|
|
65
|
-
building_types.each do |build_type|
|
|
66
|
-
epw_files.each do |epw_file|
|
|
67
|
-
templates.each do |template|
|
|
68
|
-
fuels.each do |fuel|
|
|
69
|
-
next if ((template == 'BTAPPRE1980') || (template == 'BTAP1980TO2010')) && (fuel == 'NaturalGasHPGasBackup')
|
|
70
|
-
test_list << "#{test_cli} -b " + build_type + " -w " + epw_file + " -t " + template + " -f " + fuel + " -k"
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
puts 'testing these scenarioes'
|
|
76
|
-
puts test_list
|
|
77
|
-
puts "To change the costing tests being run please edit test_run_costing_tests.rb."
|
|
78
|
-
assert(ParallelTests.new.run(test_list), "Some tests failed please ensure all test pass and tests have been updated to reflect the changes you expect before issuing a pull request")
|
|
79
|
-
end
|
|
80
|
-
end
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
template,building_type,space_type,lighting_per_area_w_per_m2,occupancy_per_area_people_per_m2,occupancy_schedule,electric_equipment_per_area_w_per_m2,service_water_heating_peak_flow_per_area_gal_per_h_ft2
|
|
2
|
-
NECB 2011,Space Function,- undefined -,0,0,,0,0
|
|
3
|
-
NECB 2011,Space Function,Atrium - H < 13m,0,0.099996771,NECB-C-Occupancy,2.499976774,0
|
|
4
|
-
NECB 2011,Space Function,Atrium - H > 13m,0,0.099996771,NECB-C-Occupancy,2.499976774,0
|
|
5
|
-
NECB 2011,Space Function,Audience - auditorium,8.499921034,0.199993542,NECB-C-Occupancy,2.499976774,0.002839298
|
|
6
|
-
NECB 2011,Space Function,Audience - motion picture,12.29988573,0.199993542,NECB-C-Occupancy,2.499976774,0.002839298
|
|
7
|
-
NECB 2011,Space Function,Audience - performance arts,26.1997566,0.133364907,NECB-C-Occupancy,2.499976774,0.001893375
|
|
8
|
-
NECB 2011,Space Function,Automotive - repair,7.19993311,0.050052205,NECB-E-Occupancy,4.999953548,0.002138732
|
|
9
|
-
NECB 2011,Space Function,Bank - banking and offices,14.89986158,0.040041764,NECB-A-Occupancy,4.999953548,0.001142515
|
|
10
|
-
NECB 2011,Space Function,Classroom/lecture/training,13.29987644,0.133364907,NECB-D-Occupancy,4.999953548,0.004120874
|
|
11
|
-
NECB 2011,Space Function,Conf./meet./multi-purpose,13.19987737,0.199993542,NECB-C-Occupancy,0.999990712,0.004286783
|
|
12
|
-
NECB 2011,Space Function,Convention centre - audience,8.799918246,0.199993542,NECB-C-Occupancy,2.499976774,0.002839298
|
|
13
|
-
NECB 2011,Space Function,Convention centre - exhibit,15.59985507,0.199993542,NECB-C-Occupancy,2.499976774,0.002839298
|
|
14
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-A,8.399921959,0.010010441,NECB-A-Occupancy,0,0
|
|
15
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-B,8.399921959,0.010010441,NECB-B-Occupancy,0,0
|
|
16
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-C,8.399921959,0.010010441,NECB-C-Occupancy,0,0
|
|
17
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-D,8.399921959,0.010010441,NECB-D-Occupancy,0,0
|
|
18
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-E,8.399921959,0.010010441,NECB-E-Occupancy,0,0
|
|
19
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-F,8.399921959,0.010010441,NECB-F-Occupancy,0,0
|
|
20
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-G,8.399921959,0.010010441,NECB-G-Occupancy,0,0
|
|
21
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-H,8.399921959,0.010010441,NECB-H-Occupancy,0,0
|
|
22
|
-
NECB 2011,Space Function,Corr. < 2.4m wide-sch-I,8.399921959,0.010010441,NECB-I-Occupancy,0,0
|
|
23
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-A,7.099934035,0.010010441,NECB-A-Occupancy,0,0
|
|
24
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-B,7.099934035,0.010010441,NECB-B-Occupancy,0,0
|
|
25
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-C,7.099934035,0.010010441,NECB-C-Occupancy,0,0
|
|
26
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-D,7.099934035,0.010010441,NECB-D-Occupancy,0,0
|
|
27
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-E,7.099934035,0.010010441,NECB-E-Occupancy,0,0
|
|
28
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-F,7.099934035,0.010010441,NECB-F-Occupancy,0,0
|
|
29
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-G,7.099934035,0.010010441,NECB-G-Occupancy,0,0
|
|
30
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-H,7.099934035,0.010010441,NECB-H-Occupancy,0,0
|
|
31
|
-
NECB 2011,Space Function,Corr. >= 2.4m wide-sch-I,7.099934035,0.010010441,NECB-I-Occupancy,0,0
|
|
32
|
-
NECB 2011,Space Function,Courthouse - cell,14.69986343,0.040041764,NECB-H-Occupancy,2.499976774,0.006180727
|
|
33
|
-
NECB 2011,Space Function,Courthouse - chambers,12.59988294,0.050052205,NECB-A-Occupancy,7.499930322,0.002138732
|
|
34
|
-
NECB 2011,Space Function,Courthouse - courtroom,18.49982813,0.199993542,NECB-A-Occupancy,2.499976774,0.002839298
|
|
35
|
-
NECB 2011,Space Function,Dining - bar lounge/leisure,14.09986901,0.099996771,NECB-B-Occupancy,0.999990712,0.004272865
|
|
36
|
-
NECB 2011,Space Function,Dining - family space,9.599910809,0.099996771,NECB-B-Occupancy,0.999990712,0.005692514
|
|
37
|
-
NECB 2011,Space Function,Dining - other,6.999934972,0.099996771,NECB-B-Occupancy,0.999990712,0.005692514
|
|
38
|
-
NECB 2011,Space Function,Dormitory - living quarters,4.099961911,0.040041764,NECB-G-Occupancy,2.499976774,0.009507954
|
|
39
|
-
NECB 2011,Space Function,Dress./fitt. - performance arts,4.299960049,0.033368137,NECB-C-Occupancy,2.499976774,0.000631634
|
|
40
|
-
NECB 2011,Space Function,Dwelling Unit(s),4.999953548,0.016684068,NECB-G-Occupancy,4.999953548,0.003961647
|
|
41
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-A,13.29987644,0.004951401,NECB-A-Occupancy,0.999990712,0
|
|
42
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-B,13.29987644,0.004951401,NECB-B-Occupancy,0.999990712,0
|
|
43
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-C,13.29987644,0.004951401,NECB-C-Occupancy,0.999990712,0
|
|
44
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-D,13.29987644,0.004951401,NECB-D-Occupancy,0.999990712,0
|
|
45
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-E,13.29987644,0.004951401,NECB-E-Occupancy,0.999990712,0
|
|
46
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-F,13.29987644,0.004951401,NECB-F-Occupancy,0.999990712,0
|
|
47
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-G,13.29987644,0.004951401,NECB-G-Occupancy,0.999990712,0
|
|
48
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-H,13.29987644,0.004951401,NECB-H-Occupancy,0.999990712,0
|
|
49
|
-
NECB 2011,Space Function,Electrical/Mechanical-sch-I,13.29987644,0.004951401,NECB-I-Occupancy,0.999990712,0
|
|
50
|
-
NECB 2011,Space Function,Fire station - engine room,5.99994426,0.040041764,NECB-H-Occupancy,2.499976774,0.006180727
|
|
51
|
-
NECB 2011,Space Function,Fire station - quarters,3.399968411,0.040041764,NECB-G-Occupancy,2.499976774,0.009507954
|
|
52
|
-
NECB 2011,Space Function,Food preparation,10.6999006,0.050052205,NECB-B-Occupancy,9.999907096,0.002849321
|
|
53
|
-
NECB 2011,Space Function,Food preparation - vented,10.6999006,0.050052205,NECB-B-Occupancy,9.999907096,0.002849321
|
|
54
|
-
NECB 2011,Space Function,Gym - audience,4.599957261,0.199993542,NECB-B-Occupancy,0,0.002839298
|
|
55
|
-
NECB 2011,Space Function,Gym - fitness,9.799908958,0.199993542,NECB-B-Occupancy,0.999990712,0.00854573
|
|
56
|
-
NECB 2011,Space Function,Gym - play,12.89988016,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
57
|
-
NECB 2011,Space Function,Hospital - emergency,24.29977425,0.050052205,NECB-H-Occupancy,9.999907096,0.004277465
|
|
58
|
-
NECB 2011,Space Function,Hospital - exam,17.89983371,0.050052205,NECB-C-Occupancy,9.999907096,0.002138732
|
|
59
|
-
NECB 2011,Space Function,Hospital - laundry/washing,7.999925683,0.050052205,NECB-C-Occupancy,19.99981419,0.001428144
|
|
60
|
-
NECB 2011,Space Function,Hospital - lounge/recreation,11.49989316,0.099996771,NECB-B-Occupancy,0.999990712,0.002853216
|
|
61
|
-
NECB 2011,Space Function,Hospital - medical supply,13.69987272,0.050052205,NECB-H-Occupancy,0.999990712,0
|
|
62
|
-
NECB 2011,Space Function,Hospital - nursery,9.499911746,0.050052205,NECB-H-Occupancy,9.999907096,0.002138732
|
|
63
|
-
NECB 2011,Space Function,Hospital - nurses' station,9.399912671,0.050052205,NECB-H-Occupancy,2.499976774,0.001072849
|
|
64
|
-
NECB 2011,Space Function,Hospital - operating room,20.2998114,0.050052205,NECB-H-Occupancy,9.999907096,0.007133752
|
|
65
|
-
NECB 2011,Space Function,Hospital - patient room,6.699937759,0.050052205,NECB-H-Occupancy,9.999907096,0.002138732
|
|
66
|
-
NECB 2011,Space Function,Hospital - pharmacy,12.29988573,0.050052205,NECB-C-Occupancy,2.499976774,0.001072849
|
|
67
|
-
NECB 2011,Space Function,Hospital - physical therapy,9.799908958,0.050052205,NECB-C-Occupancy,9.999907096,0.001072849
|
|
68
|
-
NECB 2011,Space Function,Hospital - radiology/imaging,14.19986808,0.050052205,NECB-H-Occupancy,9.999907096,0.002138732
|
|
69
|
-
NECB 2011,Space Function,Hospital - recovery,12.39988481,0.050052205,NECB-H-Occupancy,9.999907096,0.004277465
|
|
70
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-A,11.69989131,0.010010441,NECB-A-Occupancy,0,0
|
|
71
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-B,11.69989131,0.010010441,NECB-B-Occupancy,0,0
|
|
72
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-C,11.69989131,0.010010441,NECB-C-Occupancy,0,0
|
|
73
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-D,11.69989131,0.010010441,NECB-D-Occupancy,0,0
|
|
74
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-E,11.69989131,0.010010441,NECB-E-Occupancy,0,0
|
|
75
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-F,11.69989131,0.010010441,NECB-F-Occupancy,0,0
|
|
76
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-G,11.69989131,0.010010441,NECB-G-Occupancy,0,0
|
|
77
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-H,11.69989131,0.010010441,NECB-H-Occupancy,0,0
|
|
78
|
-
NECB 2011,Space Function,Hospital corr. < 2.4m-sch-I,11.69989131,0.010010441,NECB-I-Occupancy,0,0
|
|
79
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-A,9.599910809,0.010010441,NECB-A-Occupancy,0,0
|
|
80
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-B,9.599910809,0.010010441,NECB-B-Occupancy,0,0
|
|
81
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-C,9.599910809,0.010010441,NECB-C-Occupancy,0,0
|
|
82
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-D,9.599910809,0.010010441,NECB-D-Occupancy,0,0
|
|
83
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-E,9.599910809,0.010010441,NECB-E-Occupancy,0,0
|
|
84
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-F,9.599910809,0.010010441,NECB-F-Occupancy,0,0
|
|
85
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-G,9.599910809,0.010010441,NECB-G-Occupancy,0,0
|
|
86
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-H,9.599910809,0.010010441,NECB-H-Occupancy,0,0
|
|
87
|
-
NECB 2011,Space Function,Hospital corr. >= 2.4m-sch-I,9.599910809,0.010010441,NECB-I-Occupancy,0,0
|
|
88
|
-
NECB 2011,Space Function,Hotel/Motel - dining,8.799918246,0.099996771,NECB-B-Occupancy,0.999990712,0.005455906
|
|
89
|
-
NECB 2011,Space Function,Hotel/Motel - lobby,11.39989409,0.099996771,NECB-H-Occupancy,2.499976774,0.001419649
|
|
90
|
-
NECB 2011,Space Function,Hotel/Motel - rooms,11.89988945,0.040041764,NECB-F-Occupancy,2.499976774,0.01140843
|
|
91
|
-
NECB 2011,Space Function,Hway lodging - dining,9.499911746,0.099996771,NECB-B-Occupancy,0.999990712,0.005455906
|
|
92
|
-
NECB 2011,Space Function,Hway lodging - rooms,8.099924747,0.040041764,NECB-F-Occupancy,2.499976774,0.01140843
|
|
93
|
-
NECB 2011,Space Function,Lab - classrooms,17.19984021,0.050052205,NECB-D-Occupancy,9.999907096,0.004277465
|
|
94
|
-
NECB 2011,Space Function,Lab - research,23.59978075,0.050052205,NECB-A-Occupancy,9.999907096,0.004277465
|
|
95
|
-
NECB 2011,Space Function,Library - cataloging,7.799927535,0.050052205,NECB-C-Occupancy,2.499976774,0.002138732
|
|
96
|
-
NECB 2011,Space Function,Library - reading,9.999907096,0.050052205,NECB-C-Occupancy,0.999990712,0.002138732
|
|
97
|
-
NECB 2011,Space Function,Library - stacks,22.89978725,0.050052205,NECB-C-Occupancy,0,0.002138732
|
|
98
|
-
NECB 2011,Space Function,Lobby - elevator,6.899935897,0.099996771,NECB-C-Occupancy,0.999990712,0
|
|
99
|
-
NECB 2011,Space Function,Lobby - motion picture,5.599947973,0.099996771,NECB-C-Occupancy,0.999990712,0
|
|
100
|
-
NECB 2011,Space Function,Lobby - other,9.699909884,0.099996771,NECB-C-Occupancy,0.999990712,0
|
|
101
|
-
NECB 2011,Space Function,Lobby - performance arts,21.49980027,0.099996771,NECB-C-Occupancy,0.999990712,0
|
|
102
|
-
NECB 2011,Space Function,Locker room,9.799908958,0.099996771,NECB-*-Occupancy,2.499976774,0
|
|
103
|
-
NECB 2011,Space Function,Locker room-sch-A,9.799908958,0.099996771,NECB-A-Occupancy,2.499976774,0
|
|
104
|
-
NECB 2011,Space Function,Locker room-sch-B,9.799908958,0.099996771,NECB-B-Occupancy,2.499976774,0
|
|
105
|
-
NECB 2011,Space Function,Locker room-sch-C,9.799908958,0.099996771,NECB-C-Occupancy,2.499976774,0
|
|
106
|
-
NECB 2011,Space Function,Locker room-sch-D,9.799908958,0.099996771,NECB-D-Occupancy,2.499976774,0
|
|
107
|
-
NECB 2011,Space Function,Locker room-sch-E,9.799908958,0.099996771,NECB-E-Occupancy,2.499976774,0
|
|
108
|
-
NECB 2011,Space Function,Locker room-sch-F,9.799908958,0.099996771,NECB-F-Occupancy,2.499976774,0
|
|
109
|
-
NECB 2011,Space Function,Locker room-sch-G,9.799908958,0.099996771,NECB-G-Occupancy,2.499976774,0
|
|
110
|
-
NECB 2011,Space Function,Locker room-sch-H,9.799908958,0.099996771,NECB-H-Occupancy,2.499976774,0
|
|
111
|
-
NECB 2011,Space Function,Locker room-sch-I,9.799908958,0.099996771,NECB-I-Occupancy,2.499976774,0
|
|
112
|
-
NECB 2011,Space Function,Lounge/recreation,9.399912671,0.099996771,NECB-B-Occupancy,0.999990712,0.002853216
|
|
113
|
-
NECB 2011,Space Function,Mfg - 7.5 <= bay H <= 15m,13.19987737,0.033368137,NECB-A-Occupancy,9.999907096,0.001425822
|
|
114
|
-
NECB 2011,Space Function,Mfg - bay H < 7.5m,12.79988108,0.033368137,NECB-A-Occupancy,9.999907096,0.001425822
|
|
115
|
-
NECB 2011,Space Function,Mfg - bay H > 15m,11.29989502,0.033368137,NECB-A-Occupancy,9.999907096,0.001425822
|
|
116
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-A,5.499948899,0.010010441,NECB-A-Occupancy,0,0
|
|
117
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-B,5.499948899,0.010010441,NECB-B-Occupancy,0,0
|
|
118
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-C,5.499948899,0.010010441,NECB-C-Occupancy,0,0
|
|
119
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-D,5.499948899,0.010010441,NECB-D-Occupancy,0,0
|
|
120
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-E,5.499948899,0.010010441,NECB-E-Occupancy,0,0
|
|
121
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-F,5.499948899,0.010010441,NECB-F-Occupancy,0,0
|
|
122
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-G,5.499948899,0.010010441,NECB-G-Occupancy,0,0
|
|
123
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-H,5.499948899,0.010010441,NECB-H-Occupancy,0,0
|
|
124
|
-
NECB 2011,Space Function,Mfg - corr. < 2.4m-sch-I,5.499948899,0.010010441,NECB-I-Occupancy,0,0
|
|
125
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-A,4.399959123,0.010010441,NECB-A-Occupancy,0,0
|
|
126
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-B,4.399959123,0.010010441,NECB-B-Occupancy,0,0
|
|
127
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-C,4.399959123,0.010010441,NECB-C-Occupancy,0,0
|
|
128
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-D,4.399959123,0.010010441,NECB-D-Occupancy,0,0
|
|
129
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-E,4.399959123,0.010010441,NECB-E-Occupancy,0,0
|
|
130
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-F,4.399959123,0.010010441,NECB-F-Occupancy,0,0
|
|
131
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-G,4.399959123,0.010010441,NECB-G-Occupancy,0,0
|
|
132
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-H,4.399959123,0.010010441,NECB-H-Occupancy,0,0
|
|
133
|
-
NECB 2011,Space Function,Mfg - corr. >= 2.4m-sch-I,4.399959123,0.010010441,NECB-I-Occupancy,0,0
|
|
134
|
-
NECB 2011,Space Function,Mfg - detailed,13.89987087,0.033368137,NECB-A-Occupancy,0,0.001425822
|
|
135
|
-
NECB 2011,Space Function,Mfg - equipment,13.29987644,0.033368137,NECB-A-Occupancy,9.999907096,0.001425822
|
|
136
|
-
NECB 2011,Space Function,Museum - exhibition,11.29989502,0.199993542,NECB-C-Occupancy,2.499976774,0.005706432
|
|
137
|
-
NECB 2011,Space Function,Museum - restoration,10.99989781,0.050052205,NECB-A-Occupancy,4.999953548,0.001191281
|
|
138
|
-
NECB 2011,Space Function,Office - enclosed,11.89988945,0.050052205,NECB-A-Occupancy,7.499930322,0.002138732
|
|
139
|
-
NECB 2011,Space Function,Office - open plan,10.99989781,0.050052205,NECB-A-Occupancy,7.499930322,0.002138732
|
|
140
|
-
NECB 2011,Space Function,Parking garage space,1.999981424,0.000968752,NECB-H-Occupancy,0,0
|
|
141
|
-
NECB 2011,Space Function,Penitentiary - audience,4.599957261,0.199993542,NECB-C-Occupancy,2.499976774,0.002839298
|
|
142
|
-
NECB 2011,Space Function,Penitentiary - classroom,14.39986622,0.133364907,NECB-D-Occupancy,4.999953548,0.004120874
|
|
143
|
-
NECB 2011,Space Function,Penitentiary - dining,11.49989316,0.099996771,NECB-B-Occupancy,0.999990712,0.005692514
|
|
144
|
-
NECB 2011,Space Function,Post office sorting,10.09990617,0.050052205,NECB-A-Occupancy,7.499930322,0.002138732
|
|
145
|
-
NECB 2011,Space Function,Religious - audience,18.19983092,0.199993542,NECB-I-Occupancy,0.999990712,0.001419649
|
|
146
|
-
NECB 2011,Space Function,Religious - fellowship hall,6.899935897,0.199993542,NECB-C-Occupancy,0.999990712,0.004286783
|
|
147
|
-
NECB 2011,Space Function,Religious - pulpit/choir,18.19983092,0.199993542,NECB-I-Occupancy,0.999990712,0.001419649
|
|
148
|
-
NECB 2011,Space Function,Retail - dressing/fitting,9.399912671,0.033368137,NECB-C-Occupancy,2.499976774,0.000631634
|
|
149
|
-
NECB 2011,Space Function,Retail - mall concourse,11.79989037,0.050052205,NECB-C-Occupancy,0.999990712,0.000710589
|
|
150
|
-
NECB 2011,Space Function,Retail - sales,18.09983184,0.033368137,NECB-C-Occupancy,2.499976774,0.000631634
|
|
151
|
-
NECB 2011,Space Function,Sales area,18.09983184,0.033368137,NECB-C-Occupancy,2.499976774,0.000631634
|
|
152
|
-
NECB 2011,Space Function,Sports arena - audience,4.599957261,0.199993542,NECB-B-Occupancy,0,0.002839298
|
|
153
|
-
NECB 2011,Space Function,Sports arena - court c1,32.399699,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
154
|
-
NECB 2011,Space Function,Sports arena - court c2,20.69980769,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
155
|
-
NECB 2011,Space Function,Sports arena - court c3,12.89988016,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
156
|
-
NECB 2011,Space Function,Sports arena - court c4,7.799927535,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
157
|
-
NECB 2011,Space Function,Sports arena - ring,28.79973244,0.199993542,NECB-B-Occupancy,1.499986062,0.00854573
|
|
158
|
-
NECB 2011,Space Function,Stairway-sch-A,7.399931248,0.004951401,NECB-A-Occupancy,0,0
|
|
159
|
-
NECB 2011,Space Function,Stairway-sch-B,7.399931248,0.004951401,NECB-B-Occupancy,0,0
|
|
160
|
-
NECB 2011,Space Function,Stairway-sch-C,7.399931248,0.004951401,NECB-C-Occupancy,0,0
|
|
161
|
-
NECB 2011,Space Function,Stairway-sch-D,7.399931248,0.004951401,NECB-D-Occupancy,0,0
|
|
162
|
-
NECB 2011,Space Function,Stairway-sch-E,7.399931248,0.004951401,NECB-E-Occupancy,0,0
|
|
163
|
-
NECB 2011,Space Function,Stairway-sch-F,7.399931248,0.004951401,NECB-F-Occupancy,0,0
|
|
164
|
-
NECB 2011,Space Function,Stairway-sch-G,7.399931248,0.004951401,NECB-G-Occupancy,0,0
|
|
165
|
-
NECB 2011,Space Function,Stairway-sch-H,7.399931248,0.004951401,NECB-H-Occupancy,0,0
|
|
166
|
-
NECB 2011,Space Function,Stairway-sch-I,7.399931248,0.004951401,NECB-I-Occupancy,0,0
|
|
167
|
-
NECB 2011,Space Function,Storage area,6.799936823,0.010010441,NECB-E-Occupancy,0.999990712,0.00142675
|
|
168
|
-
NECB 2011,Space Function,Storage area - refrigerated,6.799936823,0.010010441,NECB-E-Occupancy,0.999990712,0.00142675
|
|
169
|
-
NECB 2011,Space Function,Transp. baggage,8.199923821,0.050052205,NECB-H-Occupancy,2.499976774,0.001546575
|
|
170
|
-
NECB 2011,Space Function,Transp. concourse,3.899963773,0.050052205,NECB-H-Occupancy,0,0.003089824
|
|
171
|
-
NECB 2011,Space Function,Transp. counter,11.59989223,0.099996771,NECB-H-Occupancy,2.499976774,0.003089824
|
|
172
|
-
NECB 2011,Space Function,Transp. seating,5.799946122,0.099996771,NECB-H-Occupancy,0,0.001546575
|
|
173
|
-
NECB 2011,Space Function,Warehouse - fine,10.19990524,0.020020882,NECB-A-Occupancy,0.999990712,0.00061863
|
|
174
|
-
NECB 2011,Space Function,Warehouse - fine - refrigerated,10.19990524,0.020020882,NECB-A-Occupancy,0.999990712,0.00061863
|
|
175
|
-
NECB 2011,Space Function,Warehouse - med/blk,6.399940547,0.010010441,NECB-A-Occupancy,0.999990712,0.000309315
|
|
176
|
-
NECB 2011,Space Function,Warehouse - med/blk - refrigerated,6.399940547,0.010010441,NECB-A-Occupancy,0.999990712,0.000309315
|
|
177
|
-
NECB 2011,Space Function,Warehouse - med/blk2,10.19990524,0.010010441,NECB-A-Occupancy,0.999990712,0.000309315
|
|
178
|
-
NECB 2011,Space Function,Warehouse - med/blk2 - refrigerated,10.19990524,0.010010441,NECB-A-Occupancy,0.999990712,0.000309315
|
|
179
|
-
NECB 2011,Space Function,Washroom-sch-A,10.49990246,0.033368137,NECB-A-Occupancy,0.999990712,0
|
|
180
|
-
NECB 2011,Space Function,Washroom-sch-B,10.49990246,0.033368137,NECB-B-Occupancy,0.999990712,0
|
|
181
|
-
NECB 2011,Space Function,Washroom-sch-C,10.49990246,0.033368137,NECB-C-Occupancy,0.999990712,0
|
|
182
|
-
NECB 2011,Space Function,Washroom-sch-D,10.49990246,0.033368137,NECB-D-Occupancy,0.999990712,0
|
|
183
|
-
NECB 2011,Space Function,Washroom-sch-E,10.49990246,0.033368137,NECB-E-Occupancy,0.999990712,0
|
|
184
|
-
NECB 2011,Space Function,Washroom-sch-F,10.49990246,0.033368137,NECB-F-Occupancy,0.999990712,0
|
|
185
|
-
NECB 2011,Space Function,Washroom-sch-G,10.49990246,0.033368137,NECB-G-Occupancy,0.999990712,0
|
|
186
|
-
NECB 2011,Space Function,Washroom-sch-H,10.49990246,0.033368137,NECB-H-Occupancy,0.999990712,0
|
|
187
|
-
NECB 2011,Space Function,Washroom-sch-I,10.49990246,0.033368137,NECB-I-Occupancy,0.999990712,0
|
|
188
|
-
NECB 2011,Convention centre,WholeBuilding,11.59989223,0.124969054,NECB-C-Occupancy,2.499976774,0.001781
|
|
189
|
-
NECB 2011,Courthouse,WholeBuilding,11.29989502,0.066628634,NECB-A-Occupancy,4.999953548,0.0019
|
|
190
|
-
NECB 2011,Motion picture theatre,WholeBuilding,8.899917321,0.124969054,NECB-C-Occupancy,0.999990712,0.001781
|
|
191
|
-
NECB 2011,Performing arts theatre,WholeBuilding,14.99986064,0.124969054,NECB-C-Occupancy,0.999990712,0.001781
|
|
192
|
-
NECB 2011,Police station,WholeBuilding,10.29990431,0.040041764,NECB-H-Occupancy,7.499930322,0.00171
|
|
193
|
-
NECB 2011,Religious,WholeBuilding,11.29989502,0.199993542,NECB-I-Occupancy,0.999990712,0.001425
|
|
194
|
-
NECB 2011,School/university,WholeBuilding,10.6999006,0.124969054,NECB-D-Occupancy,4.999953548,0.003562
|
|
195
|
-
NECB 2011,Town hall,WholeBuilding,9.899908022,0.040041764,NECB-D-Occupancy,7.499930322,0.00171
|
|
196
|
-
NECB 2011,Automotive facility,WholeBuilding,8.799918246,0.050052205,NECB-E-Occupancy,4.999953548,0.002137
|
|
197
|
-
NECB 2011,Fire station,WholeBuilding,7.599929396,0.040041764,NECB-F-Occupancy,2.499976774,0.007599
|
|
198
|
-
NECB 2011,Parking garage,WholeBuilding,2.699974912,0.000968752,NECB-H-Occupancy,0,0
|
|
199
|
-
NECB 2011,Exercise centre,WholeBuilding,9.499911746,0.099996771,NECB-B-Occupancy,0.999990712,0.004274
|
|
200
|
-
NECB 2011,Gymnasium,WholeBuilding,10.79989967,0.099996771,NECB-B-Occupancy,0.999990712,0.004274
|
|
201
|
-
NECB 2011,Health-care clinic,WholeBuilding,9.399912671,0.050052205,NECB-A-Occupancy,7.499930322,0.002137
|
|
202
|
-
NECB 2011,Office,WholeBuilding,9.699909884,0.040041764,NECB-A-Occupancy,7.499930322,0.00171
|
|
203
|
-
NECB 2011,Post office,WholeBuilding,9.399912671,0.040041764,NECB-A-Occupancy,7.499930322,0.00171
|
|
204
|
-
NECB 2011,Retail,WholeBuilding,15.09985972,0.033368137,NECB-C-Occupancy,2.499976774,0.000633
|
|
205
|
-
NECB 2011,Sports arena,WholeBuilding,8.399921959,0.099996771,NECB-B-Occupancy,0.999990712,0.004274
|
|
206
|
-
NECB 2011,Transportation,WholeBuilding,8.299922896,0.066628634,NECB-H-Occupancy,0.999990712,0.002058
|
|
207
|
-
NECB 2011,Library,WholeBuilding,12.69988202,0.050052205,NECB-C-Occupancy,2.499976774,0.002137
|
|
208
|
-
NECB 2011,Museum,WholeBuilding,11.39989409,0.050052205,NECB-C-Occupancy,2.499976774,0.001425
|
|
209
|
-
NECB 2011,Hospital,WholeBuilding,12.99987923,0.050052205,NECB-H-Occupancy,7.499930322,0.002137
|
|
210
|
-
NECB 2011,Manufacturing facility,WholeBuilding,11.89988945,0.033368137,NECB-A-Occupancy,9.999907096,0.001425
|
|
211
|
-
NECB 2011,Workshop,WholeBuilding,12.89988016,0.033368137,NECB-A-Occupancy,9.999907096,0.001425
|
|
212
|
-
NECB 2011,Hotel,WholeBuilding,10.79989967,0.040041764,NECB-F-Occupancy,2.499976774,0.009498
|
|
213
|
-
NECB 2011,Motel,WholeBuilding,9.499911746,0.040041764,NECB-F-Occupancy,2.499976774,0.009498
|
|
214
|
-
NECB 2011,Multi-unit residential,WholeBuilding,6.49993961,0.016684068,NECB-G-Occupancy,4.999953548,0.003958
|
|
215
|
-
NECB 2011,Dormitory,WholeBuilding,6.599938685,0.033368137,NECB-G-Occupancy,2.499976774,0.007915
|
|
216
|
-
NECB 2011,Penitentiary,WholeBuilding,10.39990338,0.033368137,NECB-H-Occupancy,2.499976774,0.006332
|
|
217
|
-
NECB 2011,Dining - bar/lounge,WholeBuilding,10.6999006,0.099996771,NECB-B-Occupancy,0.999990712,0.005462
|
|
218
|
-
NECB 2011,Dining - cafeteria,WholeBuilding,9.699909884,0.099996771,NECB-B-Occupancy,0.999990712,0.005462
|
|
219
|
-
NECB 2011,Dining - family,WholeBuilding,9.599910809,0.099996771,NECB-B-Occupancy,0.999990712,0.005462
|
|
220
|
-
NECB 2011,Warehouse,WholeBuilding,7.099934035,0.000645835,NECB-A-Occupancy,0.999990712,9.50E-05
|
|
221
|
-
NECB 2011,Warehouse - refrigerated,WholeBuilding,7.099934035,0.000645835,NECB-A-Occupancy,0.999990712,9.50E-05
|
|
222
|
-
NECB 2011,Space Function,Workshop space,17.09984114,0.033368137,NECB-A-Occupancy,9.999907096,0.001425822
|
|
223
|
-
NECB 2011,Space Function,Office - enclosed - occsens,10.70991548,0.050052205,NECB-A-Occupancy,7.499940809,0.002138732
|
|
224
|
-
NECB 2011,Space Function,Storage area - occsens,6.119951702,0.010010441,NECB-E-Occupancy,0.99999211,0.00142675
|
|
225
|
-
NECB 2011,Space Function,Storage area - refrigerated - occsens,6.119951702,0.010010441,NECB-E-Occupancy,0.99999211,0.00142675
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# This utility adds a template field defining the NECB data the given json file refers to. The template field is added
|
|
2
|
-
# to the top of each element in the table array.
|
|
3
|
-
|
|
4
|
-
require 'json'
|
|
5
|
-
|
|
6
|
-
class Add_template_field_to_json
|
|
7
|
-
# Name of file you want to add template fields to:
|
|
8
|
-
in_json_file = './necb_hvac_system_selection_type.json'
|
|
9
|
-
# Name of file you want this script to produce:
|
|
10
|
-
out_json_file = './necb_hvac_system_selection_type_mod.json'
|
|
11
|
-
# What template version do you want to add:
|
|
12
|
-
template_version = { 'template' => 'NECB2011' }
|
|
13
|
-
# Open the json file and put the data in data_tables:
|
|
14
|
-
file = File.read(in_json_file)
|
|
15
|
-
data_tables = JSON.parse(file)
|
|
16
|
-
# Go through the file and add whatever you put in template_version to the top of each element of the table array
|
|
17
|
-
data_tables['tables'][0]['table'].each_with_index do |data_table, index|
|
|
18
|
-
data_tables['tables'][0]['table'][index] = template_version.merge(data_table)
|
|
19
|
-
end
|
|
20
|
-
# Save the modified hash to a the file and location defined in out_json_file
|
|
21
|
-
File.open(out_json_file, 'w') { |each_file| each_file.write(JSON.pretty_generate(data_tables)) }
|
|
22
|
-
end
|