openstudio-model-articulation 0.3.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -1
  3. data/CHANGELOG.md +28 -0
  4. data/Gemfile +6 -0
  5. data/Jenkinsfile +1 -0
  6. data/LICENSE.md +1 -1
  7. data/README.md +22 -3
  8. data/doc_templates/LICENSE.md +1 -1
  9. data/doc_templates/copyright_erb.txt +1 -1
  10. data/doc_templates/copyright_js.txt +1 -1
  11. data/doc_templates/copyright_ruby.txt +1 -1
  12. data/lib/measures/AssignConstructionSetToBuilding/LICENSE.md +1 -1
  13. data/lib/measures/AssignConstructionSetToBuilding/measure.rb +1 -1
  14. data/lib/measures/AssignConstructionSetToBuilding/measure.xml +16 -15
  15. data/lib/measures/AssignSpaceTypeBySpaceName/LICENSE.md +1 -1
  16. data/lib/measures/AssignSpaceTypeBySpaceName/measure.rb +1 -1
  17. data/lib/measures/AssignSpaceTypeBySpaceName/measure.xml +32 -13
  18. data/lib/measures/AssignSpaceTypeToBuilding/LICENSE.md +1 -1
  19. data/lib/measures/AssignSpaceTypeToBuilding/measure.rb +1 -1
  20. data/lib/measures/AssignSpaceTypeToBuilding/measure.xml +16 -15
  21. data/lib/measures/AssignSpacesToStories/LICENSE.md +1 -1
  22. data/lib/measures/AssignSpacesToStories/measure.rb +3 -5
  23. data/lib/measures/AssignSpacesToStories/measure.xml +14 -13
  24. data/lib/measures/BarAspectRatioStudy/LICENSE.md +1 -1
  25. data/lib/measures/BarAspectRatioStudy/measure.rb +3 -2
  26. data/lib/measures/BarAspectRatioStudy/measure.xml +8 -7
  27. data/lib/measures/CleanupSpaceOrigins/LICENSE.md +1 -1
  28. data/lib/measures/CleanupSpaceOrigins/measure.rb +4 -1
  29. data/lib/measures/CleanupSpaceOrigins/measure.xml +14 -13
  30. data/lib/measures/FindAndReplaceObjectNames/LICENSE.md +1 -1
  31. data/lib/measures/FindAndReplaceObjectNames/measure.rb +1 -1
  32. data/lib/measures/FindAndReplaceObjectNames/measure.xml +13 -12
  33. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/LICENSE.md +1 -1
  34. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/measure.rb +3 -3
  35. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/measure.xml +28 -10
  36. data/lib/measures/RemoveHardAssignedConstructions/LICENSE.md +1 -1
  37. data/lib/measures/RemoveHardAssignedConstructions/measure.rb +1 -1
  38. data/lib/measures/RemoveHardAssignedConstructions/measure.xml +13 -12
  39. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/LICENSE.md +1 -1
  40. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/measure.rb +1 -1
  41. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/measure.xml +42 -11
  42. data/lib/measures/RotateBuilding/LICENSE.md +1 -1
  43. data/lib/measures/RotateBuilding/measure.rb +1 -1
  44. data/lib/measures/RotateBuilding/measure.xml +13 -12
  45. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/LICENSE.md +1 -1
  46. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/measure.rb +1 -1
  47. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/measure.xml +17 -10
  48. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/LICENSE.md +1 -1
  49. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/measure.rb +2 -2
  50. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/measure.xml +13 -12
  51. data/lib/measures/SetInteriorWallsToSelectedConstruction/LICENSE.md +1 -1
  52. data/lib/measures/SetInteriorWallsToSelectedConstruction/measure.rb +2 -2
  53. data/lib/measures/SetInteriorWallsToSelectedConstruction/measure.xml +13 -12
  54. data/lib/measures/SetWindowToWallRatioByFacade/LICENSE.md +1 -1
  55. data/lib/measures/SetWindowToWallRatioByFacade/README.md +11 -0
  56. data/lib/measures/SetWindowToWallRatioByFacade/measure.rb +91 -143
  57. data/lib/measures/SetWindowToWallRatioByFacade/measure.xml +32 -11
  58. data/lib/measures/SetWindowToWallRatioByFacade/resources/functions.rb +176 -0
  59. data/lib/measures/SimplifyGeometryToSlicedBar/LICENSE.md +1 -1
  60. data/lib/measures/SimplifyGeometryToSlicedBar/measure.rb +9 -5
  61. data/lib/measures/SimplifyGeometryToSlicedBar/measure.xml +31 -13
  62. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_cofee.rb +7 -5
  63. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_geometry.rb +14 -9
  64. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_helper_methods.rb +3 -5
  65. data/lib/measures/SpaceTypeAndConstructionSetWizard/LICENSE.md +1 -1
  66. data/lib/measures/SpaceTypeAndConstructionSetWizard/measure.rb +2 -2
  67. data/lib/measures/SpaceTypeAndConstructionSetWizard/measure.xml +63 -11
  68. data/lib/measures/SurfaceMatching/LICENSE.md +1 -1
  69. data/lib/measures/SurfaceMatching/measure.rb +2 -1
  70. data/lib/measures/SurfaceMatching/measure.xml +13 -12
  71. data/lib/measures/{BarAspectRatioSlicedBySpaceType → add_empd_material_properties}/LICENSE.md +1 -1
  72. data/lib/measures/add_empd_material_properties/README.md +116 -0
  73. data/lib/measures/{BarAspectRatioSlicedBySpaceType → add_empd_material_properties}/README.md.erb +0 -0
  74. data/lib/measures/add_empd_material_properties/docs/.gitkeep +0 -0
  75. data/lib/measures/add_empd_material_properties/measure.rb +247 -0
  76. data/lib/measures/add_empd_material_properties/measure.xml +201 -0
  77. data/lib/measures/blended_space_type_from_floor_area_ratios/LICENSE.md +1 -1
  78. data/lib/measures/blended_space_type_from_floor_area_ratios/measure.rb +5 -4
  79. data/lib/measures/blended_space_type_from_floor_area_ratios/measure.xml +5 -5
  80. data/lib/measures/blended_space_type_from_model/LICENSE.md +1 -1
  81. data/lib/measures/blended_space_type_from_model/{resources → docs}/replace_occupied_spaces_with_blended_space_type_design_doc.txt +0 -0
  82. data/lib/measures/blended_space_type_from_model/measure.rb +16 -4
  83. data/lib/measures/blended_space_type_from_model/measure.xml +16 -22
  84. data/lib/measures/clone_building_from_external_model/LICENSE.md +1 -1
  85. data/lib/measures/clone_building_from_external_model/measure.rb +1 -1
  86. data/lib/measures/clone_building_from_external_model/measure.xml +5 -5
  87. data/lib/measures/create_DOE_prototype_building/LICENSE.md +1 -1
  88. data/lib/measures/create_DOE_prototype_building/measure.rb +4 -3
  89. data/lib/measures/create_DOE_prototype_building/measure.xml +163 -27
  90. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/LICENSE.md +1 -1
  91. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/measure.rb +1 -1
  92. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/measure.xml +5 -5
  93. data/lib/measures/create_bar_from_building_type_ratios/LICENSE.md +1 -1
  94. data/lib/measures/create_bar_from_building_type_ratios/README.md +109 -35
  95. data/lib/measures/create_bar_from_building_type_ratios/README.md.erb +54 -35
  96. data/lib/measures/create_bar_from_building_type_ratios/measure.rb +9 -4
  97. data/lib/measures/create_bar_from_building_type_ratios/measure.xml +124 -12
  98. data/lib/measures/create_bar_from_deer_building_type_ratios/LICENSE.md +1 -1
  99. data/lib/measures/create_bar_from_deer_building_type_ratios/README.md +301 -79
  100. data/lib/measures/create_bar_from_deer_building_type_ratios/README.md.erb +62 -79
  101. data/lib/measures/create_bar_from_deer_building_type_ratios/measure.rb +10 -5
  102. data/lib/measures/create_bar_from_deer_building_type_ratios/measure.xml +15 -59
  103. data/lib/measures/create_bar_from_doe_building_type_ratios/LICENSE.md +1 -1
  104. data/lib/measures/create_bar_from_doe_building_type_ratios/README.md +298 -57
  105. data/lib/measures/create_bar_from_doe_building_type_ratios/README.md.erb +54 -57
  106. data/lib/measures/create_bar_from_doe_building_type_ratios/measure.rb +10 -5
  107. data/lib/measures/create_bar_from_doe_building_type_ratios/measure.xml +122 -14
  108. data/lib/measures/create_bar_from_model/LICENSE.md +1 -1
  109. data/lib/measures/create_bar_from_model/measure.rb +11 -7
  110. data/lib/measures/create_bar_from_model/measure.xml +5 -5
  111. data/lib/measures/create_bar_from_space_type_ratios/LICENSE.md +27 -0
  112. data/lib/measures/create_bar_from_space_type_ratios/README.md +556 -0
  113. data/lib/measures/create_bar_from_space_type_ratios/README.md.erb +324 -0
  114. data/lib/measures/create_bar_from_space_type_ratios/docs/ar_05.png +0 -0
  115. data/lib/measures/create_bar_from_space_type_ratios/docs/ar_1.png +0 -0
  116. data/lib/measures/create_bar_from_space_type_ratios/docs/ar_2.png +0 -0
  117. data/lib/measures/create_bar_from_space_type_ratios/docs/bar_double_loaded.png +0 -0
  118. data/lib/measures/create_bar_from_space_type_ratios/docs/bar_single_core_perim.png +0 -0
  119. data/lib/measures/create_bar_from_space_type_ratios/docs/bar_sliced_indiv.png +0 -0
  120. data/lib/measures/create_bar_from_space_type_ratios/docs/bar_sliced_simple.png +0 -0
  121. data/lib/measures/create_bar_from_space_type_ratios/docs/basement.png +0 -0
  122. data/lib/measures/create_bar_from_space_type_ratios/docs/custom_height_false.png +0 -0
  123. data/lib/measures/create_bar_from_space_type_ratios/docs/custom_height_true.png +0 -0
  124. data/lib/measures/create_bar_from_space_type_ratios/docs/no_party_mult.png +0 -0
  125. data/lib/measures/create_bar_from_space_type_ratios/docs/party.png +0 -0
  126. data/lib/measures/create_bar_from_space_type_ratios/docs/party_multi.png +0 -0
  127. data/lib/measures/create_bar_from_space_type_ratios/docs/perim_mult_2010.png +0 -0
  128. data/lib/measures/create_bar_from_space_type_ratios/docs/perim_mult_2012.png +0 -0
  129. data/lib/measures/create_bar_from_space_type_ratios/docs/perim_mult_2020.png +0 -0
  130. data/lib/measures/create_bar_from_space_type_ratios/docs/sep_05.png +0 -0
  131. data/lib/measures/create_bar_from_space_type_ratios/docs/sep_10.png +0 -0
  132. data/lib/measures/create_bar_from_space_type_ratios/docs/sep_3.png +0 -0
  133. data/lib/measures/create_bar_from_space_type_ratios/docs/story_sort.png +0 -0
  134. data/lib/measures/create_bar_from_space_type_ratios/docs/wwr_custom.png +0 -0
  135. data/lib/measures/create_bar_from_space_type_ratios/measure.rb +314 -0
  136. data/lib/measures/create_bar_from_space_type_ratios/measure.xml +687 -0
  137. data/lib/measures/create_baseline_building/LICENSE.md +1 -1
  138. data/lib/measures/create_baseline_building/measure.rb +4 -3
  139. data/lib/measures/create_baseline_building/measure.xml +5 -5
  140. data/lib/measures/create_deer_prototype_building/LICENSE.md +1 -1
  141. data/lib/measures/create_deer_prototype_building/measure.rb +1 -1
  142. data/lib/measures/create_deer_prototype_building/measure.xml +6 -6
  143. data/lib/measures/create_deer_prototype_building/resources/deer_building_types.rb +1 -1
  144. data/lib/measures/create_parametric_schedules/LICENSE.md +1 -1
  145. data/lib/measures/create_parametric_schedules/measure.rb +16 -11
  146. data/lib/measures/create_parametric_schedules/measure.xml +5 -5
  147. data/lib/measures/create_typical_building_from_model/LICENSE.md +1 -1
  148. data/lib/measures/create_typical_building_from_model/README.md +82 -17
  149. data/lib/measures/create_typical_building_from_model/README.md.erb +36 -16
  150. data/lib/measures/create_typical_building_from_model/measure.rb +8 -6
  151. data/lib/measures/create_typical_building_from_model/measure.xml +59 -27
  152. data/lib/measures/create_typical_building_from_model/resources/Model.hvac.rb +8 -5
  153. data/lib/measures/create_typical_deer_building_from_model/LICENSE.md +1 -1
  154. data/lib/measures/create_typical_deer_building_from_model/README.md +173 -53
  155. data/lib/measures/create_typical_deer_building_from_model/README.md.erb +57 -53
  156. data/lib/measures/create_typical_deer_building_from_model/measure.rb +8 -3
  157. data/lib/measures/create_typical_deer_building_from_model/measure.xml +26 -26
  158. data/lib/measures/create_typical_deer_building_from_model/resources/Model.hvac.rb +8 -5
  159. data/lib/measures/create_typical_doe_building_from_model/LICENSE.md +1 -1
  160. data/lib/measures/create_typical_doe_building_from_model/README.md +182 -44
  161. data/lib/measures/create_typical_doe_building_from_model/README.md.erb +58 -44
  162. data/lib/measures/create_typical_doe_building_from_model/measure.rb +8 -3
  163. data/lib/measures/create_typical_doe_building_from_model/measure.xml +60 -28
  164. data/lib/measures/create_typical_doe_building_from_model/resources/Model.hvac.rb +8 -5
  165. data/lib/measures/deer_space_type_and_construction_set_wizard/LICENSE.md +1 -1
  166. data/lib/measures/deer_space_type_and_construction_set_wizard/measure.rb +2 -2
  167. data/lib/measures/deer_space_type_and_construction_set_wizard/measure.xml +17 -17
  168. data/lib/measures/find_and_replace_in_all_thermal_zone_names/LICENSE.md +1 -1
  169. data/lib/measures/find_and_replace_in_all_thermal_zone_names/measure.rb +1 -1
  170. data/lib/measures/find_and_replace_in_all_thermal_zone_names/measure.xml +8 -7
  171. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/LICENSE.md +1 -1
  172. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/measure.rb +3 -1
  173. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/measure.xml +5 -5
  174. data/lib/measures/merge_floorspace_js_with_model/LICENSE.md +1 -1
  175. data/lib/measures/merge_floorspace_js_with_model/measure.rb +5 -2
  176. data/lib/measures/merge_floorspace_js_with_model/measure.xml +5 -5
  177. data/lib/measures/merge_spaces_from_external_file/LICENSE.md +1 -1
  178. data/lib/measures/merge_spaces_from_external_file/measure.rb +1 -1
  179. data/lib/measures/merge_spaces_from_external_file/measure.xml +6 -6
  180. data/lib/measures/merge_spaces_from_external_file/resources/ScheduleTranslator.rb +1 -1
  181. data/lib/measures/radiance_measure/LICENSE.md +1 -1
  182. data/lib/measures/radiance_measure/measure.rb +63 -57
  183. data/lib/measures/radiance_measure/measure.xml +11 -11
  184. data/lib/measures/radiant_slab_with_doas/LICENSE.md +1 -1
  185. data/lib/measures/radiant_slab_with_doas/measure.rb +9 -2
  186. data/lib/measures/radiant_slab_with_doas/measure.xml +10 -10
  187. data/lib/measures/replace_geometry_by_story/LICENSE.md +1 -1
  188. data/lib/measures/replace_geometry_by_story/measure.rb +5 -1
  189. data/lib/measures/replace_geometry_by_story/measure.xml +5 -5
  190. data/lib/measures/scale_geometry/LICENSE.md +1 -1
  191. data/lib/measures/scale_geometry/measure.rb +1 -1
  192. data/lib/measures/scale_geometry/measure.xml +5 -5
  193. data/lib/openstudio/model_articulation/extension.rb +1 -1
  194. data/lib/openstudio/model_articulation/version.rb +2 -2
  195. data/lib/openstudio/model_articulation.rb +1 -1
  196. data/lib/openstudio-model-articulation.rb +1 -1
  197. data/openstudio-model-articulation.gemspec +3 -3
  198. metadata +42 -16
  199. data/lib/measures/BarAspectRatioSlicedBySpaceType/README.md +0 -64
  200. data/lib/measures/BarAspectRatioSlicedBySpaceType/measure.rb +0 -184
  201. data/lib/measures/BarAspectRatioSlicedBySpaceType/measure.xml +0 -130
  202. data/lib/measures/BarAspectRatioSlicedBySpaceType/resources/os_lib_cofee.rb +0 -252
  203. data/lib/measures/blended_space_type_from_model/resources/os_lib_model_simplification.rb +0 -1049
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01c5bcb07416106fe61980acd3e210ece468d45963aa7e3aa8b4fda084653564
4
- data.tar.gz: 20262b87740ed3c3919b410cfb737082fe58f3378e14c6eceaeb67e1fe1586d1
3
+ metadata.gz: 6e4a8ca5bd1a4d319fece164759f13bb32c326b6de0da69088c0d848c5fff6d4
4
+ data.tar.gz: 32b16197235bc5a1e5b79d9afa31b5db7e2107ad577bea982f71a1fecefb1835
5
5
  SHA512:
6
- metadata.gz: bf0db0301f4a11a7a778c1e5eb1d164dfc348fafe40e4e757a5e13867b1e53e3de37c4eeb8427982b9c274f532d1885d115e5ca8877722b629e617741149e37c
7
- data.tar.gz: 280a09fd5229b5769a2e9b0698aa85a6abf7de45acd45c0cf6045a739f298e255f86ff69f7d11eeeb3184d9c0e28450d0ecb76218eb696e9b84f5c30cfcc8e1b
6
+ metadata.gz: 1f9554f9825cd4423651324b1cff0c7fe0001a1fef16391d24c32bc1ae51c18b10037caa61fe0a9fa85aa23ff10698977d3d7bd45f7e60107b31bfb758415a40
7
+ data.tar.gz: f16d2ad5b3f2d03c0014480b4599f1f0823f5af56bddfaa36dc1d102b00e556ecae682d6ceefb390e25af0bc0a944db482eea437dc928acf8ca8236e4570f147
data/.rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  AllCops:
2
2
  Exclude:
3
3
  - 'spec/test_measures/**/*'
4
+ require: rubocop-performance
4
5
  inherit_from:
5
- - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v3.yml
6
+ - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v4.yml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # OpenStudio Model Articulation Gems
2
2
 
3
+ ## Version 0.6.0
4
+ * Support for OpenStudio 3.4 (upgrade to standards gem 0.2.16, no extension gem upgrade)
5
+ * Fixed [#92]( https://github.com/NREL/openstudio-model-articulation-gem/issues/92 ), SetWindowToWallRatio triangulation can produce non-planar surfaces
6
+ * Fixed [#94]( https://github.com/NREL/openstudio-model-articulation-gem/pull/94 ), fix SetWindowToWallRatio triangulation
7
+ * Fixed [#95]( https://github.com/NREL/openstudio-model-articulation-gem/pull/95 ), add warnings to SetWindowToWallRatio to categorize cases when WWR can't be applied
8
+ * Fixed [#98]( https://github.com/NREL/openstudio-model-articulation-gem/pull/98 ), Radiance Daylighting Measure - Update measure.rb
9
+ * Fixed [#101]( https://github.com/NREL/openstudio-model-articulation-gem/pull/101 ), setting building and space type standard to Blend
10
+
11
+ ## Version 0.5.0
12
+ * Support for OpenStudio 3.3 (upgrade to extension gem 0.5.1 and standards gem 0.2.15)
13
+ * Fixed [#73]( https://github.com/NREL/openstudio-model-articulation-gem/pull/73 ), added add_empd_material_properties measure contributed by GFlechas
14
+ * Fixed [#83]( https://github.com/NREL/openstudio-model-articulation-gem/pull/83 ), adding compatibility matrix and contribution policy
15
+ * Fixed [#85]( https://github.com/NREL/openstudio-model-articulation-gem/pull/85 ), For SetWindowToWallRatioByFacade fixed rectangle tol and pre-split at door remove windows
16
+
17
+ ## Version 0.4.1
18
+
19
+ * Support for OpenStudio 3.2.1 (upgrade to extension gem 0.4.3 and standards gem 0.2.14)
20
+ * update to use rubocop_v4
21
+ * Documentation update to some measures
22
+ * Setting up webhook for https://bcl2.nrel.gov
23
+
24
+ ## Version 0.4.0
25
+
26
+ * Support Ruby ~> 2.7
27
+ * Support for OpenStudio 3.2 (upgrade to extension gem 0.4.2 and standards gem 0.2.13)
28
+ * Support for ASHRAE 90.1 2016 for DOE prototype measure
29
+ * Support for ASHRAE 90.1 216 and 2019 for measures that pull templates from extension gem. This includes but is not limited to DOE create_bar, create_typical, and space type and construction set wizard measures.
30
+
3
31
  ## Version 0.3.1
4
32
 
5
33
  * Bump openstudio-extension-gem version to 0.3.2 to support updated workflow-gem
data/Gemfile CHANGED
@@ -11,6 +11,12 @@ gemspec
11
11
  # checkout the latest version (develop) from github.
12
12
  allow_local = ENV['FAVOR_LOCAL_GEMS']
13
13
 
14
+ # uncomment when you want CI to use develop branch of extension gem
15
+ #gem 'openstudio-extension', github: 'NREL/OpenStudio-extension-gem', branch: 'develop'
16
+
17
+ # uncomment when you want CI to use develop branch of openstudio-standards gem
18
+ #gem 'openstudio-standards', github: 'NREL/OpenStudio-standards', branch: 'master'
19
+
14
20
  # Only uncomment if you need to test a different version of the extension gem
15
21
  # if allow_local && File.exist?('../OpenStudio-extension-gem')
16
22
  # gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
data/Jenkinsfile CHANGED
@@ -8,3 +8,4 @@ if ((env.CHANGE_ID) && (env.CHANGE_TARGET) ) { // check if set
8
8
  openstudio_extension_gems()
9
9
 
10
10
  }
11
+
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
data/README.md CHANGED
@@ -47,16 +47,35 @@ bundle exec rake openstudio:test_with_openstudio
47
47
  /usr/local/openstudio-3.0.0-beta/bin/openstudio-3.0.0-beta --verbose --bundle '/var/simdata/openstudio/Gemfile' --bundle_path '/var/simdata/openstudio/.bundle/install/' measure -r '/var/simdata/openstudio/lib/measures/radiance_measure/'
48
48
  ```
49
49
 
50
+ # Compatibility Matrix
51
+
52
+ |OpenStudio Model Articulation Gem|OpenStudio|Ruby|
53
+ |:--------------:|:----------:|:--------:|
54
+ | 0.6.0 | 3.4 | 2.7 |
55
+ | 0.5.0 | 3.3 | 2.7 |
56
+ | 0.4.0 - 0.4.2 | 3.2 | 2.7 |
57
+ | 0.3.0 - 0.3.1 | 3.1 | 2.5 |
58
+ | 0.2.0 - 0.2.1 | 3.0 | 2.5 |
59
+ | 0.1.1 and below | 2.9 and below | 2.2.4 |
60
+
61
+ # Contributing
62
+
63
+ Please review the [OpenStudio Contribution Policy](https://openstudio.net/openstudio-contribution-policy) if you would like to contribute code to this gem.
64
+
50
65
  ## TODO
51
66
 
52
- - [ ] Move articulation measures from openstudio-measures
53
- - [ ] Move articulation measure lib files to openstudio-extension lib
67
+ - [x] Move articulation measures from openstudio-measures
68
+ - [x] Move articulation measure lib files to openstudio-extension lib
54
69
  - [ ] Update measures to correct naming conventions
55
70
 
56
71
  # Releasing
57
72
 
58
73
  * Update CHANGELOG.md
59
- * Run `rake rubocop:auto_correct`
74
+ * Run `rake openstudio:rubocop:auto_correct`
75
+ * Run `rake openstudio:update_copyright`
76
+ * Run `rake openstudio:update_measures` (this has to be done last since prior tasks alter measure files)
77
+ * Update version in `readme.md`
78
+ * Update version in `openstudio-model-articulation.gemspec`
60
79
  * Update version in `/lib/openstudio/model_articulation/version.rb`
61
80
  * Create PR to master, after tests and reviews complete, then merge
62
81
  * Locally - from the master branch, run `rake release`
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  # *******************************************************************************
3
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
3
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
4
4
  # All rights reserved.
5
5
  # Redistribution and use in source and binary forms, with or without
6
6
  # modification, are permitted provided that the following conditions are met:
@@ -1,4 +1,4 @@
1
1
  /* @preserve
2
- * OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
2
+ * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
3
3
  * Use of this source code is governed by a BSD-style license that can be found at openstudio.net/license.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>assign_construction_set_to_building</name>
4
5
  <uid>6e68ddea-2cff-47a3-9daf-f2189e4cf132</uid>
5
- <version_id>7d0a6fbc-4921-4fa8-bdc2-081108e9d60e</version_id>
6
- <version_modified>20200229T024044Z</version_modified>
6
+ <version_id>497da6f8-f10e-4c93-b5de-6d46027f0119</version_id>
7
+ <version_modified>20220505T182919Z</version_modified>
7
8
  <xml_checksum>1E963D9C</xml_checksum>
8
9
  <class_name>AssignConstructionSetToBuilding</class_name>
9
10
  <display_name>AssignConstructionSetToBuilding</display_name>
@@ -16,17 +17,17 @@
16
17
  <type>Choice</type>
17
18
  <required>true</required>
18
19
  <model_dependent>false</model_dependent>
19
- <default_value>&lt;clear field></default_value>
20
+ <default_value>{366b719d-cdcd-403e-82f2-1ff5eb23d1b8}</default_value>
20
21
  <choices>
21
22
  <choice>
22
- <value>{96f339b3-3b1a-4d56-9da8-e8b682a5cf14}</value>
23
- <display_name>&lt;clear field></display_name>
23
+ <value>{366b719d-cdcd-403e-82f2-1ff5eb23d1b8}</value>
24
+ <display_name>&lt;clear field&gt;</display_name>
24
25
  </choice>
25
26
  </choices>
26
27
  </argument>
27
28
  </arguments>
28
- <outputs/>
29
- <provenances/>
29
+ <outputs />
30
+ <provenances />
30
31
  <tags>
31
32
  <tag>Envelope.Opaque</tag>
32
33
  </tags>
@@ -70,19 +71,19 @@
70
71
  <filename>measure.rb</filename>
71
72
  <filetype>rb</filetype>
72
73
  <usage_type>script</usage_type>
73
- <checksum>6539FFE0</checksum>
74
- </file>
75
- <file>
76
- <filename>AssignConstructionSetToBuilding_Test.rb</filename>
77
- <filetype>rb</filetype>
78
- <usage_type>test</usage_type>
79
- <checksum>1FCB8918</checksum>
74
+ <checksum>40E5CA19</checksum>
80
75
  </file>
81
76
  <file>
82
77
  <filename>LICENSE.md</filename>
83
78
  <filetype>md</filetype>
84
79
  <usage_type>license</usage_type>
85
- <checksum>E0468DD6</checksum>
80
+ <checksum>A21A3ED2</checksum>
81
+ </file>
82
+ <file>
83
+ <filename>AssignConstructionSetToBuilding_Test.rb</filename>
84
+ <filetype>rb</filetype>
85
+ <usage_type>test</usage_type>
86
+ <checksum>EAEB5017</checksum>
86
87
  </file>
87
88
  </files>
88
89
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>assign_space_type_by_space_name</name>
4
5
  <uid>69ad41bb-cdfe-4a4c-a385-9efaf35b7c27</uid>
5
- <version_id>86949250-e3fb-44cd-983a-6a5cf4cf28dd</version_id>
6
- <version_modified>20200229T024056Z</version_modified>
6
+ <version_id>e60a2200-a654-4e1c-95fb-b19533ffb96b</version_id>
7
+ <version_modified>20220505T182934Z</version_modified>
7
8
  <xml_checksum>057E8D9D</xml_checksum>
8
9
  <class_name>AssignSpaceTypeBySpaceName</class_name>
9
10
  <display_name>AssignSpaceTypeBySpaceName</display_name>
@@ -23,11 +24,11 @@
23
24
  <type>Choice</type>
24
25
  <required>true</required>
25
26
  <model_dependent>false</model_dependent>
26
- <default_value>&lt;clear field></default_value>
27
+ <default_value>{ef3c55b4-9cb7-451d-8c82-00a6d685c59f}</default_value>
27
28
  <choices>
28
29
  <choice>
29
- <value>{750d43f2-e137-4a44-8b11-f37816ad36b5}</value>
30
- <display_name>&lt;clear field></display_name>
30
+ <value>{ef3c55b4-9cb7-451d-8c82-00a6d685c59f}</value>
31
+ <display_name>&lt;clear field&gt;</display_name>
31
32
  </choice>
32
33
  </choices>
33
34
  </argument>
@@ -50,8 +51,8 @@
50
51
  </choices>
51
52
  </argument>
52
53
  </arguments>
53
- <outputs/>
54
- <provenances/>
54
+ <outputs />
55
+ <provenances />
55
56
  <tags>
56
57
  <tag>Whole Building.Space Types</tag>
57
58
  </tags>
@@ -95,19 +96,37 @@
95
96
  <filename>measure.rb</filename>
96
97
  <filetype>rb</filetype>
97
98
  <usage_type>script</usage_type>
98
- <checksum>09E97413</checksum>
99
+ <checksum>6A6F122F</checksum>
100
+ </file>
101
+ <file>
102
+ <filename>LICENSE.md</filename>
103
+ <filetype>md</filetype>
104
+ <usage_type>license</usage_type>
105
+ <checksum>A21A3ED2</checksum>
99
106
  </file>
100
107
  <file>
101
108
  <filename>AssignSpaceTypeBySpaceName_Test.rb</filename>
102
109
  <filetype>rb</filetype>
103
110
  <usage_type>test</usage_type>
104
- <checksum>A62C6900</checksum>
111
+ <checksum>4302B4E5</checksum>
105
112
  </file>
106
113
  <file>
107
- <filename>LICENSE.md</filename>
108
- <filetype>md</filetype>
109
- <usage_type>license</usage_type>
110
- <checksum>E0468DD6</checksum>
114
+ <filename>ImportedIdf_TestModel/project.log</filename>
115
+ <filetype>log</filetype>
116
+ <usage_type>test</usage_type>
117
+ <checksum>6D480771</checksum>
118
+ </file>
119
+ <file>
120
+ <filename>ImportedIdf_TestModel/run.db</filename>
121
+ <filetype>db</filetype>
122
+ <usage_type>test</usage_type>
123
+ <checksum>BF4974CA</checksum>
124
+ </file>
125
+ <file>
126
+ <filename>ImportedIdf_TestModel/project.osp</filename>
127
+ <filetype>osp</filetype>
128
+ <usage_type>test</usage_type>
129
+ <checksum>19B74631</checksum>
111
130
  </file>
112
131
  </files>
113
132
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>assign_space_type_to_building</name>
4
5
  <uid>05e20922-6fe4-48a4-bddb-411f8167e757</uid>
5
- <version_id>27d55f6d-a2a6-4842-8062-24a15045d1d6</version_id>
6
- <version_modified>20200229T024044Z</version_modified>
6
+ <version_id>affc7390-ec3e-41fb-a814-adc09ac4ab80</version_id>
7
+ <version_modified>20220505T182919Z</version_modified>
7
8
  <xml_checksum>057E8D9D</xml_checksum>
8
9
  <class_name>AssignSpaceTypeToBuilding</class_name>
9
10
  <display_name>AssignSpaceTypeToBuilding</display_name>
@@ -16,17 +17,17 @@
16
17
  <type>Choice</type>
17
18
  <required>true</required>
18
19
  <model_dependent>false</model_dependent>
19
- <default_value>&lt;clear field></default_value>
20
+ <default_value>{045b3260-33ad-451f-9c68-f8e75c422740}</default_value>
20
21
  <choices>
21
22
  <choice>
22
- <value>{fdc29a03-de66-47a1-9874-c307c8fc87dc}</value>
23
- <display_name>&lt;clear field></display_name>
23
+ <value>{045b3260-33ad-451f-9c68-f8e75c422740}</value>
24
+ <display_name>&lt;clear field&gt;</display_name>
24
25
  </choice>
25
26
  </choices>
26
27
  </argument>
27
28
  </arguments>
28
- <outputs/>
29
- <provenances/>
29
+ <outputs />
30
+ <provenances />
30
31
  <tags>
31
32
  <tag>Whole Building.Space Types</tag>
32
33
  </tags>
@@ -70,19 +71,19 @@
70
71
  <filename>measure.rb</filename>
71
72
  <filetype>rb</filetype>
72
73
  <usage_type>script</usage_type>
73
- <checksum>4FFBDBB2</checksum>
74
- </file>
75
- <file>
76
- <filename>AssignSpaceTypeToBuilding_Test.rb</filename>
77
- <filetype>rb</filetype>
78
- <usage_type>test</usage_type>
79
- <checksum>11BF4055</checksum>
74
+ <checksum>C904ACC5</checksum>
80
75
  </file>
81
76
  <file>
82
77
  <filename>LICENSE.md</filename>
83
78
  <filetype>md</filetype>
84
79
  <usage_type>license</usage_type>
85
- <checksum>E0468DD6</checksum>
80
+ <checksum>A21A3ED2</checksum>
81
+ </file>
82
+ <file>
83
+ <filename>AssignSpaceTypeToBuilding_Test.rb</filename>
84
+ <filetype>rb</filetype>
85
+ <usage_type>test</usage_type>
86
+ <checksum>E998ED20</checksum>
86
87
  </file>
87
88
  </files>
88
89
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -72,10 +72,8 @@ class AssignSpacesToStories < OpenStudio::Measure::ModelMeasure
72
72
  def getStoryForNominalZCoordinate(model, minz)
73
73
  model.getBuildingStorys.each do |story|
74
74
  z = story.nominalZCoordinate
75
- if !z.empty?
76
- if minz.round(2) == z.get.round(2)
77
- return story
78
- end
75
+ if !z.empty? && (minz.round(2) == z.get.round(2))
76
+ return story
79
77
  end
80
78
  end
81
79
 
@@ -1,17 +1,18 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>assign_spaces_to_stories</name>
4
5
  <uid>2c91fe40-db31-4334-a1dd-817cd419f1b6</uid>
5
- <version_id>22a0bea4-3fec-487a-b335-1af6de435dc5</version_id>
6
- <version_modified>20200229T024057Z</version_modified>
6
+ <version_id>4e02a25e-c2d0-4dbe-8359-0cc52c0d0930</version_id>
7
+ <version_modified>20220505T182936Z</version_modified>
7
8
  <xml_checksum>45097B60</xml_checksum>
8
9
  <class_name>AssignSpacesToStories</class_name>
9
10
  <display_name>AssignSpacesToStories</display_name>
10
11
  <description>This measure will look as space geometry and assign each space to a story, creating new stories as necessary.</description>
11
12
  <modeler_description>If spaces are already assigned to stories, the will be left alone.</modeler_description>
12
- <arguments/>
13
- <outputs/>
14
- <provenances/>
13
+ <arguments />
14
+ <outputs />
15
+ <provenances />
15
16
  <tags>
16
17
  <tag>Envelope.Form</tag>
17
18
  </tags>
@@ -46,6 +47,12 @@
46
47
  <usage_type>readme</usage_type>
47
48
  <checksum>8BA985AD</checksum>
48
49
  </file>
50
+ <file>
51
+ <filename>LICENSE.md</filename>
52
+ <filetype>md</filetype>
53
+ <usage_type>license</usage_type>
54
+ <checksum>A21A3ED2</checksum>
55
+ </file>
49
56
  <file>
50
57
  <version>
51
58
  <software_program>OpenStudio</software_program>
@@ -55,19 +62,13 @@
55
62
  <filename>measure.rb</filename>
56
63
  <filetype>rb</filetype>
57
64
  <usage_type>script</usage_type>
58
- <checksum>4E95712C</checksum>
65
+ <checksum>F3B0D790</checksum>
59
66
  </file>
60
67
  <file>
61
68
  <filename>AssignSpacesToStories_Test.rb</filename>
62
69
  <filetype>rb</filetype>
63
70
  <usage_type>test</usage_type>
64
- <checksum>7A32032F</checksum>
65
- </file>
66
- <file>
67
- <filename>LICENSE.md</filename>
68
- <filetype>md</filetype>
69
- <usage_type>license</usage_type>
70
- <checksum>E0468DD6</checksum>
71
+ <checksum>2D0ACAFB</checksum>
71
72
  </file>
72
73
  </files>
73
74
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -127,7 +127,8 @@ class BarAspectRatioStudy < OpenStudio::Measure::ModelMeasure
127
127
  end
128
128
 
129
129
  # helper to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure.
130
- def neat_numbers(number, roundto = 2) # round to 0 or 2)
130
+ # round to 0 or 2)
131
+ def neat_numbers(number, roundto = 2)
131
132
  if roundto == 2
132
133
  number = format '%.2f', number
133
134
  else
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>bar_aspect_ratio_study</name>
4
5
  <uid>3dcac94d-8a2e-43b6-8698-a3a4e8f3903f</uid>
5
- <version_id>bc5cc57e-c161-4c4f-a411-d0719e883a45</version_id>
6
- <version_modified>20200229T024052Z</version_modified>
6
+ <version_id>360834b1-c338-4e27-a2f8-f22268563f3d</version_id>
7
+ <version_modified>20220505T182927Z</version_modified>
7
8
  <xml_checksum>49BEF039</xml_checksum>
8
9
  <class_name>BarAspectRatioStudy</class_name>
9
10
  <display_name>Bar Aspect Ratio Study</display_name>
@@ -81,8 +82,8 @@
81
82
  </choices>
82
83
  </argument>
83
84
  </arguments>
84
- <outputs/>
85
- <provenances/>
85
+ <outputs />
86
+ <provenances />
86
87
  <tags>
87
88
  <tag>Envelope.Form</tag>
88
89
  </tags>
@@ -125,7 +126,7 @@
125
126
  <filename>LICENSE.md</filename>
126
127
  <filetype>md</filetype>
127
128
  <usage_type>license</usage_type>
128
- <checksum>E0468DD6</checksum>
129
+ <checksum>A21A3ED2</checksum>
129
130
  </file>
130
131
  <file>
131
132
  <version>
@@ -136,13 +137,13 @@
136
137
  <filename>measure.rb</filename>
137
138
  <filetype>rb</filetype>
138
139
  <usage_type>script</usage_type>
139
- <checksum>741408BD</checksum>
140
+ <checksum>1B314685</checksum>
140
141
  </file>
141
142
  <file>
142
143
  <filename>BarAspectRatioStudy_Test.rb</filename>
143
144
  <filetype>rb</filetype>
144
145
  <usage_type>test</usage_type>
145
- <checksum>3311CA6D</checksum>
146
+ <checksum>92B6A007</checksum>
146
147
  </file>
147
148
  </files>
148
149
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -94,6 +94,7 @@ class CleanupSpaceOrigins < OpenStudio::Measure::ModelMeasure
94
94
  # do spaces first as these may contain other groups
95
95
  model.getSpaces.each do |space|
96
96
  next if !runner.inSelection(space)
97
+
97
98
  cleanup_group(space)
98
99
 
99
100
  space.shadingSurfaceGroups.each do |group|
@@ -108,12 +109,14 @@ class CleanupSpaceOrigins < OpenStudio::Measure::ModelMeasure
108
109
  # now do shading surfaces
109
110
  model.getShadingSurfaceGroups.each do |group|
110
111
  next if !runner.inSelection(group)
112
+
111
113
  cleanup_group(group)
112
114
  end
113
115
 
114
116
  # now do interior partition surface groups
115
117
  model.getInteriorPartitionSurfaceGroups.each do |group|
116
118
  next if !runner.inSelection(group)
119
+
117
120
  cleanup_group(group)
118
121
  end
119
122