openstudio-common-measures 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_with_openstudio.yml +2 -2
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +10 -5
  5. data/Jenkinsfile +1 -1
  6. data/README.md +2 -0
  7. data/lib/measures/.rubocop.yml +6 -0
  8. data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
  9. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
  10. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
  11. data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
  12. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
  13. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
  14. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
  15. data/lib/measures/AddExteriorLights/measure.xml +19 -19
  16. data/lib/measures/AddMeter/measure.xml +15 -15
  17. data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
  18. data/lib/measures/AddOutputVariable/measure.xml +15 -15
  19. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
  20. data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
  21. data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
  22. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
  23. data/lib/measures/ChangeBuildingLocation/README.md +1 -1
  24. data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
  25. data/lib/measures/ChangeBuildingLocation/measure.xml +89 -89
  26. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
  27. data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
  28. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
  29. data/lib/measures/MeterFlodPlot/measure.xml +35 -35
  30. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
  31. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
  32. data/lib/measures/PredictedMeanVote/measure.xml +23 -23
  33. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
  34. data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
  35. data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
  36. data/lib/measures/ReplaceModel/README.md +1 -3
  37. data/lib/measures/ReplaceModel/measure.xml +32 -14
  38. data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
  39. data/lib/measures/ReportModelChanges/measure.xml +23 -23
  40. data/lib/measures/RunPeriod/measure.xml +14 -14
  41. data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
  42. data/lib/measures/ServerDirectoryCleanup/measure.xml +30 -30
  43. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
  44. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
  45. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
  46. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
  47. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
  48. data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
  49. data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
  50. data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
  51. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
  52. data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
  53. data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
  54. data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
  55. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
  56. data/lib/measures/VentilationQAQC/measure.xml +31 -31
  57. data/lib/measures/XcelEDAReportingandQAQC/measure.xml +46 -46
  58. data/lib/measures/XcelEDAReportingandQAQC/resources/CreateResults.rb +2 -0
  59. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
  60. data/lib/measures/ZoneReport/measure.xml +35 -35
  61. data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
  62. data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
  63. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
  64. data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
  65. data/lib/measures/add_ev_load/measure.xml +35 -35
  66. data/lib/measures/add_rooftop_pv/measure.rb +5 -7
  67. data/lib/measures/add_rooftop_pv/measure.xml +25 -25
  68. data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
  69. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
  70. data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
  71. data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
  72. data/lib/measures/create_csv_output/measure.xml +28 -28
  73. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
  74. data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
  75. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
  76. data/lib/measures/example_report/measure.rb +2 -5
  77. data/lib/measures/example_report/measure.xml +41 -41
  78. data/lib/measures/example_report/resources/report.html.erb +1 -0
  79. data/lib/measures/gem_env_report/measure.xml +32 -32
  80. data/lib/measures/generic_qaqc/measure.rb +8 -15
  81. data/lib/measures/generic_qaqc/measure.xml +175 -175
  82. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
  83. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
  84. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +14 -5
  85. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
  86. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
  87. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
  88. data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
  89. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
  90. data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
  91. data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
  92. data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
  93. data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
  94. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
  95. data/lib/measures/inject_idf_objects/measure.xml +31 -31
  96. data/lib/measures/openstudio_results/measure.rb +2 -6
  97. data/lib/measures/openstudio_results/measure.xml +348 -360
  98. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +8 -8
  99. data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
  100. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
  101. data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
  102. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
  103. data/lib/measures/set_run_period/measure.xml +19 -19
  104. data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +22 -22
  105. data/lib/measures/shadow_calculation/measure.xml +18 -18
  106. data/lib/measures/tariff_selection_block/measure.rb +2 -5
  107. data/lib/measures/tariff_selection_block/measure.xml +25 -25
  108. data/lib/measures/tariff_selection_flat/measure.rb +3 -5
  109. data/lib/measures/tariff_selection_flat/measure.xml +25 -25
  110. data/lib/measures/tariff_selection_generic/measure.rb +2 -5
  111. data/lib/measures/tariff_selection_generic/measure.xml +39 -39
  112. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
  113. data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
  114. data/lib/measures/view_data/measure.xml +41 -41
  115. data/lib/measures/view_model/measure.xml +35 -35
  116. data/lib/openstudio/common_measures/version.rb +1 -1
  117. data/openstudio-common-measures.gemspec +11 -4
  118. metadata +72 -15
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>add_rooftop_pv</name>
5
5
  <uid>34550614-0c87-44db-9252-0ca0915b1e64</uid>
6
- <version_id>645e4fbe-c829-4de2-adc5-3181f2db13ea</version_id>
7
- <version_modified>20221115T223603Z</version_modified>
6
+ <version_id>f6dcae0f-c0e6-42dc-bc4b-1caca12e71f3</version_id>
7
+ <version_modified>2024-07-11T14:32:06Z</version_modified>
8
8
  <xml_checksum>178163B6</xml_checksum>
9
9
  <class_name>AddRooftopPV</class_name>
10
10
  <display_name>Add Rooftop PV</display_name>
@@ -88,16 +88,10 @@
88
88
  </attributes>
89
89
  <files>
90
90
  <file>
91
- <filename>pv_test_input.osm</filename>
92
- <filetype>osm</filetype>
93
- <usage_type>test</usage_type>
94
- <checksum>AB14A2B3</checksum>
95
- </file>
96
- <file>
97
- <filename>README.md.erb</filename>
98
- <filetype>erb</filetype>
99
- <usage_type>readmeerb</usage_type>
100
- <checksum>703C9964</checksum>
91
+ <filename>LICENSE.md</filename>
92
+ <filetype>md</filetype>
93
+ <usage_type>license</usage_type>
94
+ <checksum>BFFB1AA6</checksum>
101
95
  </file>
102
96
  <file>
103
97
  <filename>README.md</filename>
@@ -106,27 +100,33 @@
106
100
  <checksum>936FAC3C</checksum>
107
101
  </file>
108
102
  <file>
109
- <filename>LICENSE.md</filename>
110
- <filetype>md</filetype>
111
- <usage_type>license</usage_type>
112
- <checksum>64FFEBDE</checksum>
113
- </file>
114
- <file>
115
- <filename>add_rooftop_pv_test.rb</filename>
116
- <filetype>rb</filetype>
117
- <usage_type>test</usage_type>
118
- <checksum>450F2645</checksum>
103
+ <filename>README.md.erb</filename>
104
+ <filetype>erb</filetype>
105
+ <usage_type>readmeerb</usage_type>
106
+ <checksum>703C9964</checksum>
119
107
  </file>
120
108
  <file>
121
109
  <version>
122
110
  <software_program>OpenStudio</software_program>
123
111
  <identifier>2.0.0</identifier>
124
- <min_compatible>2.8.0</min_compatible>
112
+ <min_compatible>3.8.0</min_compatible>
125
113
  </version>
126
114
  <filename>measure.rb</filename>
127
115
  <filetype>rb</filetype>
128
116
  <usage_type>script</usage_type>
129
- <checksum>5289A80E</checksum>
117
+ <checksum>9AA2D6EE</checksum>
118
+ </file>
119
+ <file>
120
+ <filename>add_rooftop_pv_test.rb</filename>
121
+ <filetype>rb</filetype>
122
+ <usage_type>test</usage_type>
123
+ <checksum>5432FFC3</checksum>
124
+ </file>
125
+ <file>
126
+ <filename>pv_test_input.osm</filename>
127
+ <filetype>osm</filetype>
128
+ <usage_type>test</usage_type>
129
+ <checksum>AB14A2B3</checksum>
130
130
  </file>
131
131
  </files>
132
132
  </measure>
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>add_zone_mixing_object</name>
5
5
  <uid>6ed65817-1d97-43da-a4c2-1d738eafcde5</uid>
6
- <version_id>915a90ef-082e-48f3-a782-d4416927bc88</version_id>
7
- <version_modified>20221115T223602Z</version_modified>
6
+ <version_id>422d82bc-c2d0-44ac-b1ed-9b40cb21bf6a</version_id>
7
+ <version_modified>2024-07-11T14:32:05Z</version_modified>
8
8
  <xml_checksum>61000E02</xml_checksum>
9
9
  <class_name>AddZoneMixingObject</class_name>
10
10
  <display_name>Add Zone Mixing Object</display_name>
@@ -70,16 +70,10 @@
70
70
  </attributes>
71
71
  <files>
72
72
  <file>
73
- <filename>ZoneMixingTestModel.osm</filename>
74
- <filetype>osm</filetype>
75
- <usage_type>test</usage_type>
76
- <checksum>4451DD5D</checksum>
77
- </file>
78
- <file>
79
- <filename>README.md.erb</filename>
80
- <filetype>erb</filetype>
81
- <usage_type>readmeerb</usage_type>
82
- <checksum>703C9964</checksum>
73
+ <filename>LICENSE.md</filename>
74
+ <filetype>md</filetype>
75
+ <usage_type>license</usage_type>
76
+ <checksum>BFFB1AA6</checksum>
83
77
  </file>
84
78
  <file>
85
79
  <filename>README.md</filename>
@@ -88,10 +82,10 @@
88
82
  <checksum>9C34D6E1</checksum>
89
83
  </file>
90
84
  <file>
91
- <filename>LICENSE.md</filename>
92
- <filetype>md</filetype>
93
- <usage_type>license</usage_type>
94
- <checksum>64FFEBDE</checksum>
85
+ <filename>README.md.erb</filename>
86
+ <filetype>erb</filetype>
87
+ <usage_type>readmeerb</usage_type>
88
+ <checksum>703C9964</checksum>
95
89
  </file>
96
90
  <file>
97
91
  <version>
@@ -102,13 +96,19 @@
102
96
  <filename>measure.rb</filename>
103
97
  <filetype>rb</filetype>
104
98
  <usage_type>script</usage_type>
105
- <checksum>464B8F57</checksum>
99
+ <checksum>968CA324</checksum>
100
+ </file>
101
+ <file>
102
+ <filename>ZoneMixingTestModel.osm</filename>
103
+ <filetype>osm</filetype>
104
+ <usage_type>test</usage_type>
105
+ <checksum>4451DD5D</checksum>
106
106
  </file>
107
107
  <file>
108
108
  <filename>add_zone_mixing_object_test.rb</filename>
109
109
  <filetype>rb</filetype>
110
110
  <usage_type>test</usage_type>
111
- <checksum>9EBBF197</checksum>
111
+ <checksum>A0A93765</checksum>
112
112
  </file>
113
113
  </files>
114
114
  </measure>
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>add_zone_ventilation_design_flow_rate_object</name>
5
5
  <uid>c31e2212-720d-413f-bdb9-f38e198dcfa3</uid>
6
- <version_id>128c4140-fa3d-48ec-878d-ef81a22de16a</version_id>
7
- <version_modified>20221115T223549Z</version_modified>
6
+ <version_id>e54d0d73-cb66-40f7-8934-e1e211940976</version_id>
7
+ <version_modified>2024-07-11T14:31:57Z</version_modified>
8
8
  <xml_checksum>3B6B95A6</xml_checksum>
9
9
  <class_name>AddZoneVentilationDesignFlowRateObject</class_name>
10
10
  <display_name>Add Zone Ventilation Design Flow Rate Object</display_name>
@@ -105,16 +105,10 @@
105
105
  </attributes>
106
106
  <files>
107
107
  <file>
108
- <filename>example_model.osm</filename>
109
- <filetype>osm</filetype>
110
- <usage_type>test</usage_type>
111
- <checksum>2492F353</checksum>
112
- </file>
113
- <file>
114
- <filename>README.md.erb</filename>
115
- <filetype>erb</filetype>
116
- <usage_type>readmeerb</usage_type>
117
- <checksum>703C9964</checksum>
108
+ <filename>LICENSE.md</filename>
109
+ <filetype>md</filetype>
110
+ <usage_type>license</usage_type>
111
+ <checksum>BFFB1AA6</checksum>
118
112
  </file>
119
113
  <file>
120
114
  <filename>README.md</filename>
@@ -122,6 +116,12 @@
122
116
  <usage_type>readme</usage_type>
123
117
  <checksum>8C13CD27</checksum>
124
118
  </file>
119
+ <file>
120
+ <filename>README.md.erb</filename>
121
+ <filetype>erb</filetype>
122
+ <usage_type>readmeerb</usage_type>
123
+ <checksum>703C9964</checksum>
124
+ </file>
125
125
  <file>
126
126
  <version>
127
127
  <software_program>OpenStudio</software_program>
@@ -131,19 +131,19 @@
131
131
  <filename>measure.rb</filename>
132
132
  <filetype>rb</filetype>
133
133
  <usage_type>script</usage_type>
134
- <checksum>14B01C81</checksum>
135
- </file>
136
- <file>
137
- <filename>LICENSE.md</filename>
138
- <filetype>md</filetype>
139
- <usage_type>license</usage_type>
140
- <checksum>64FFEBDE</checksum>
134
+ <checksum>27698FB7</checksum>
141
135
  </file>
142
136
  <file>
143
137
  <filename>add_zone_ventilation_design_flow_rate_object_test.rb</filename>
144
138
  <filetype>rb</filetype>
145
139
  <usage_type>test</usage_type>
146
- <checksum>0411D6F6</checksum>
140
+ <checksum>1C95B333</checksum>
141
+ </file>
142
+ <file>
143
+ <filename>example_model.osm</filename>
144
+ <filetype>osm</filetype>
145
+ <usage_type>test</usage_type>
146
+ <checksum>2492F353</checksum>
147
147
  </file>
148
148
  </files>
149
149
  </measure>
@@ -6,12 +6,10 @@
6
6
  # see the URL below for information on how to write OpenStudio measures
7
7
  # http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_geometry'
12
-
13
9
  # start the measure
14
10
  class AirWallZoneMixing < OpenStudio::Measure::ModelMeasure
11
+ require 'openstudio-standards'
12
+
15
13
  # human readable name
16
14
  def name
17
15
  return 'Air Wall Zone Mixing'
@@ -78,8 +76,8 @@ Zone mixing will only be added where there is an air wall and where the matched
78
76
  max_space_height = 0
79
77
  zone.spaces.each do |space|
80
78
  volume_counter += space.volume
81
- min_space_zvalue = OsLib_Geometry.getSurfaceZValues(space.surfaces).sort.first # this expects an array of surfaces
82
- max_space_zvalue = OsLib_Geometry.getSurfaceZValues(space.surfaces).sort.last # this expects an array of surfaces
79
+ min_space_zvalue = OpenstudioStandards::Geometry.surfaces_get_z_values(space.surfaces).sort.first # this expects an array of surfaces
80
+ max_space_zvalue = OpenstudioStandards::Geometry.surfaces_get_z_values(space.surfaces).sort.last # this expects an array of surfaces
83
81
  if max_space_zvalue - min_space_zvalue > max_space_height
84
82
  max_space_height = max_space_zvalue - min_space_zvalue
85
83
  end
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>air_wall_zone_mixing</name>
5
5
  <uid>fd04f73e-a530-4144-9e1e-c1878b1394bc</uid>
6
- <version_id>28c2d597-413e-4d7e-9fcc-d3ec505a65bd</version_id>
7
- <version_modified>20221115T223559Z</version_modified>
6
+ <version_id>05a68d53-908d-4baf-9dd5-40c526bfc76f</version_id>
7
+ <version_modified>2024-07-11T14:32:03Z</version_modified>
8
8
  <xml_checksum>772B7164</xml_checksum>
9
9
  <class_name>AirWallZoneMixing</class_name>
10
10
  <display_name>Air Wall Zone Mixing</display_name>
@@ -70,16 +70,10 @@ Zone mixing will only be added where there is an air wall and where the matched
70
70
  </attributes>
71
71
  <files>
72
72
  <file>
73
- <filename>example_model.osm</filename>
74
- <filetype>osm</filetype>
75
- <usage_type>test</usage_type>
76
- <checksum>AD3A8B94</checksum>
77
- </file>
78
- <file>
79
- <filename>SimpleTest.osm</filename>
80
- <filetype>osm</filetype>
81
- <usage_type>test</usage_type>
82
- <checksum>38ED88B9</checksum>
73
+ <filename>LICENSE.md</filename>
74
+ <filetype>md</filetype>
75
+ <usage_type>license</usage_type>
76
+ <checksum>BFFB1AA6</checksum>
83
77
  </file>
84
78
  <file>
85
79
  <filename>README.md</filename>
@@ -129,28 +123,34 @@ Zone mixing will only be added where there is an air wall and where the matched
129
123
  <usage_type>doc</usage_type>
130
124
  <checksum>95902986</checksum>
131
125
  </file>
132
- <file>
133
- <filename>LICENSE.md</filename>
134
- <filetype>md</filetype>
135
- <usage_type>license</usage_type>
136
- <checksum>64FFEBDE</checksum>
137
- </file>
138
- <file>
139
- <filename>air_wall_zone_mixing_test.rb</filename>
140
- <filetype>rb</filetype>
141
- <usage_type>test</usage_type>
142
- <checksum>F33CA3D2</checksum>
143
- </file>
144
126
  <file>
145
127
  <version>
146
128
  <software_program>OpenStudio</software_program>
147
129
  <identifier>2.0.0</identifier>
148
- <min_compatible>2.8.0</min_compatible>
130
+ <min_compatible>3.8.0</min_compatible>
149
131
  </version>
150
132
  <filename>measure.rb</filename>
151
133
  <filetype>rb</filetype>
152
134
  <usage_type>script</usage_type>
153
- <checksum>53547EED</checksum>
135
+ <checksum>2E6E39F8</checksum>
136
+ </file>
137
+ <file>
138
+ <filename>SimpleTest.osm</filename>
139
+ <filetype>osm</filetype>
140
+ <usage_type>test</usage_type>
141
+ <checksum>38ED88B9</checksum>
142
+ </file>
143
+ <file>
144
+ <filename>air_wall_zone_mixing_test.rb</filename>
145
+ <filetype>rb</filetype>
146
+ <usage_type>test</usage_type>
147
+ <checksum>856448EA</checksum>
148
+ </file>
149
+ <file>
150
+ <filename>example_model.osm</filename>
151
+ <filetype>osm</filetype>
152
+ <usage_type>test</usage_type>
153
+ <checksum>AD3A8B94</checksum>
154
154
  </file>
155
155
  </files>
156
156
  </measure>
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>create_csv_output</name>
5
5
  <uid>99d3a7e5-4bd5-407f-b5eb-7c59660ca980</uid>
6
- <version_id>fbbc1933-a541-4258-89b1-20ec4abae16a</version_id>
7
- <version_modified>20230118T161956Z</version_modified>
6
+ <version_id>a1449e43-ae2f-468f-abb1-11be6f448e2e</version_id>
7
+ <version_modified>2024-07-11T14:32:06Z</version_modified>
8
8
  <xml_checksum>9BF1E6AC</xml_checksum>
9
9
  <class_name>CreateCSVOutput</class_name>
10
10
  <display_name>CreateCSVOutput</display_name>
@@ -65,7 +65,13 @@
65
65
  <filename>LICENSE.md</filename>
66
66
  <filetype>md</filetype>
67
67
  <usage_type>license</usage_type>
68
- <checksum>CD7F5672</checksum>
68
+ <checksum>BFFB1AA6</checksum>
69
+ </file>
70
+ <file>
71
+ <filename>README.md</filename>
72
+ <filetype>md</filetype>
73
+ <usage_type>readme</usage_type>
74
+ <checksum>0A07426F</checksum>
69
75
  </file>
70
76
  <file>
71
77
  <filename>README.md.erb</filename>
@@ -79,24 +85,6 @@
79
85
  <usage_type>doc</usage_type>
80
86
  <checksum>00000000</checksum>
81
87
  </file>
82
- <file>
83
- <filename>example_model.osm</filename>
84
- <filetype>osm</filetype>
85
- <usage_type>test</usage_type>
86
- <checksum>39B6E26C</checksum>
87
- </file>
88
- <file>
89
- <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
90
- <filetype>epw</filetype>
91
- <usage_type>test</usage_type>
92
- <checksum>BDF687C1</checksum>
93
- </file>
94
- <file>
95
- <filename>report.html.in</filename>
96
- <filetype>in</filetype>
97
- <usage_type>resource</usage_type>
98
- <checksum>3F69E3FB</checksum>
99
- </file>
100
88
  <file>
101
89
  <version>
102
90
  <software_program>OpenStudio</software_program>
@@ -106,19 +94,31 @@
106
94
  <filename>measure.rb</filename>
107
95
  <filetype>rb</filetype>
108
96
  <usage_type>script</usage_type>
109
- <checksum>94EA9ABB</checksum>
97
+ <checksum>B46C084C</checksum>
98
+ </file>
99
+ <file>
100
+ <filename>report.html.in</filename>
101
+ <filetype>in</filetype>
102
+ <usage_type>resource</usage_type>
103
+ <checksum>3F69E3FB</checksum>
104
+ </file>
105
+ <file>
106
+ <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
107
+ <filetype>epw</filetype>
108
+ <usage_type>test</usage_type>
109
+ <checksum>BDF687C1</checksum>
110
110
  </file>
111
111
  <file>
112
112
  <filename>create_csv_output_test.rb</filename>
113
113
  <filetype>rb</filetype>
114
114
  <usage_type>test</usage_type>
115
- <checksum>74354A94</checksum>
115
+ <checksum>91652056</checksum>
116
116
  </file>
117
117
  <file>
118
- <filename>README.md</filename>
119
- <filetype>md</filetype>
120
- <usage_type>readme</usage_type>
121
- <checksum>0A07426F</checksum>
118
+ <filename>example_model.osm</filename>
119
+ <filetype>osm</filetype>
120
+ <usage_type>test</usage_type>
121
+ <checksum>39B6E26C</checksum>
122
122
  </file>
123
123
  </files>
124
124
  </measure>
@@ -6,10 +6,6 @@
6
6
  require 'erb'
7
7
  require 'json'
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  require "#{File.dirname(__FILE__)}/resources/os_lib_reporting_envelope_and_internal_loads_breakdown"
14
10
 
15
11
  # start the measure
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>envelope_and_internal_load_breakdown</name>
5
5
  <uid>8f0e1fbb-8bc6-46e5-b6e4-db59177e2c02</uid>
6
- <version_id>094a25e3-d116-401e-8cdb-ae076a79079a</version_id>
7
- <version_modified>20221115T224203Z</version_modified>
6
+ <version_id>a792eb8c-870a-4c3e-8780-c1cd5b7dd8d2</version_id>
7
+ <version_modified>2024-07-11T14:32:04Z</version_modified>
8
8
  <xml_checksum>69BA4D91</xml_checksum>
9
9
  <class_name>EnvelopeAndInternalLoadBreakdown</class_name>
10
10
  <display_name>Envelope and Internal Load Breakdown</display_name>
@@ -71,28 +71,22 @@
71
71
  </attributes>
72
72
  <files>
73
73
  <file>
74
- <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
75
- <filetype>epw</filetype>
76
- <usage_type>test</usage_type>
77
- <checksum>BDF687C1</checksum>
78
- </file>
79
- <file>
80
- <filename>ExampleModel.osm</filename>
81
- <filetype>osm</filetype>
82
- <usage_type>test</usage_type>
83
- <checksum>7F9DACF4</checksum>
74
+ <filename>LICENSE.md</filename>
75
+ <filetype>md</filetype>
76
+ <usage_type>license</usage_type>
77
+ <checksum>BFFB1AA6</checksum>
84
78
  </file>
85
79
  <file>
86
- <filename>ExampleModel_NoExtNoGround.osm</filename>
87
- <filetype>osm</filetype>
88
- <usage_type>test</usage_type>
89
- <checksum>07CE0378</checksum>
80
+ <filename>README.md</filename>
81
+ <filetype>md</filetype>
82
+ <usage_type>readme</usage_type>
83
+ <checksum>7D00FFF0</checksum>
90
84
  </file>
91
85
  <file>
92
- <filename>ExampleModel_NoLoads_NoOA.osm</filename>
93
- <filetype>osm</filetype>
94
- <usage_type>test</usage_type>
95
- <checksum>CA6A593D</checksum>
86
+ <filename>README.md.erb</filename>
87
+ <filetype>erb</filetype>
88
+ <usage_type>readmeerb</usage_type>
89
+ <checksum>1223C55C</checksum>
96
90
  </file>
97
91
  <file>
98
92
  <filename>htg_gain_detailed_a.png</filename>
@@ -113,63 +107,69 @@
113
107
  <checksum>E8E7FBC8</checksum>
114
108
  </file>
115
109
  <file>
116
- <filename>htg_loss_summary.png</filename>
110
+ <filename>htg_loss_detailed.png</filename>
117
111
  <filetype>png</filetype>
118
112
  <usage_type>doc</usage_type>
119
- <checksum>69DDA02E</checksum>
113
+ <checksum>6E4E8FE2</checksum>
120
114
  </file>
121
115
  <file>
122
- <filename>htg_loss_detailed.png</filename>
116
+ <filename>htg_loss_summary.png</filename>
123
117
  <filetype>png</filetype>
124
118
  <usage_type>doc</usage_type>
125
- <checksum>6E4E8FE2</checksum>
119
+ <checksum>69DDA02E</checksum>
126
120
  </file>
127
121
  <file>
128
- <filename>README.md.erb</filename>
129
- <filetype>erb</filetype>
130
- <usage_type>readmeerb</usage_type>
131
- <checksum>1223C55C</checksum>
122
+ <version>
123
+ <software_program>OpenStudio</software_program>
124
+ <identifier>2.0.0</identifier>
125
+ <min_compatible>3.8.0</min_compatible>
126
+ </version>
127
+ <filename>measure.rb</filename>
128
+ <filetype>rb</filetype>
129
+ <usage_type>script</usage_type>
130
+ <checksum>184F527B</checksum>
132
131
  </file>
133
132
  <file>
134
133
  <filename>os_lib_reporting_envelope_and_internal_loads_breakdown.rb</filename>
135
134
  <filetype>rb</filetype>
136
135
  <usage_type>resource</usage_type>
137
- <checksum>471E57CB</checksum>
136
+ <checksum>EBC3D1C1</checksum>
138
137
  </file>
139
138
  <file>
140
- <filename>LICENSE.md</filename>
141
- <filetype>md</filetype>
142
- <usage_type>license</usage_type>
143
- <checksum>64FFEBDE</checksum>
139
+ <filename>report.html.erb</filename>
140
+ <filetype>erb</filetype>
141
+ <usage_type>resource</usage_type>
142
+ <checksum>41C02D76</checksum>
144
143
  </file>
145
144
  <file>
146
145
  <filename>EnvelopeAndInternalLoadBreakdown_Test.rb</filename>
147
146
  <filetype>rb</filetype>
148
147
  <usage_type>test</usage_type>
149
- <checksum>C9C97ADF</checksum>
148
+ <checksum>DCE6255F</checksum>
150
149
  </file>
151
150
  <file>
152
- <version>
153
- <software_program>OpenStudio</software_program>
154
- <identifier>2.0.0</identifier>
155
- <min_compatible>3.1.0</min_compatible>
156
- </version>
157
- <filename>measure.rb</filename>
158
- <filetype>rb</filetype>
159
- <usage_type>script</usage_type>
160
- <checksum>4B3CF7A8</checksum>
151
+ <filename>ExampleModel.osm</filename>
152
+ <filetype>osm</filetype>
153
+ <usage_type>test</usage_type>
154
+ <checksum>7F9DACF4</checksum>
161
155
  </file>
162
156
  <file>
163
- <filename>README.md</filename>
164
- <filetype>md</filetype>
165
- <usage_type>readme</usage_type>
166
- <checksum>7D00FFF0</checksum>
157
+ <filename>ExampleModel_NoExtNoGround.osm</filename>
158
+ <filetype>osm</filetype>
159
+ <usage_type>test</usage_type>
160
+ <checksum>07CE0378</checksum>
167
161
  </file>
168
162
  <file>
169
- <filename>report.html.erb</filename>
170
- <filetype>erb</filetype>
171
- <usage_type>resource</usage_type>
172
- <checksum>0C9A88EB</checksum>
163
+ <filename>ExampleModel_NoLoads_NoOA.osm</filename>
164
+ <filetype>osm</filetype>
165
+ <usage_type>test</usage_type>
166
+ <checksum>CA6A593D</checksum>
167
+ </file>
168
+ <file>
169
+ <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
170
+ <filetype>epw</filetype>
171
+ <usage_type>test</usage_type>
172
+ <checksum>BDF687C1</checksum>
173
173
  </file>
174
174
  </files>
175
175
  </measure>
@@ -6,10 +6,6 @@
6
6
  require 'erb'
7
7
  require 'json'
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  require "#{File.dirname(__FILE__)}/resources/os_lib_reporting_example"
14
10
 
15
11
  # start the measure
@@ -88,7 +84,8 @@ class ExampleReport < OpenStudio::Measure::ReportingMeasure
88
84
  web_asset_path = setup[:web_asset_path]
89
85
 
90
86
  # assign the user inputs to variables
91
- args = OsLib_HelperMethods.createRunVariables(runner, model, user_arguments, arguments)
87
+ args = runner.getArgumentValues(arguments, user_arguments)
88
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
92
89
  unless args
93
90
  return false
94
91
  end