openstudio-model-articulation 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -19
  3. data/Rakefile +5 -7
  4. data/lib/measures/AssignConstructionSetToBuilding/measure.rb +0 -2
  5. data/lib/measures/AssignSpaceTypeBySpaceName/measure.rb +0 -2
  6. data/lib/measures/AssignSpaceTypeToBuilding/measure.rb +0 -2
  7. data/lib/measures/AssignSpacesToStories/measure.rb +0 -2
  8. data/lib/measures/BarAspectRatioSlicedBySpaceType/measure.rb +0 -2
  9. data/lib/measures/BarAspectRatioSlicedBySpaceType/resources/os_lib_cofee.rb +0 -2
  10. data/lib/measures/BarAspectRatioStudy/measure.rb +0 -2
  11. data/lib/measures/CleanupSpaceOrigins/measure.rb +0 -2
  12. data/lib/measures/FindAndReplaceObjectNames/measure.rb +0 -2
  13. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/measure.rb +0 -2
  14. data/lib/measures/RemoveHardAssignedConstructions/measure.rb +0 -2
  15. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/measure.rb +0 -2
  16. data/lib/measures/RotateBuilding/measure.rb +0 -2
  17. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/measure.rb +0 -2
  18. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/measure.rb +0 -2
  19. data/lib/measures/SetInteriorWallsToSelectedConstruction/measure.rb +0 -2
  20. data/lib/measures/SetWindowToWallRatioByFacade/measure.rb +0 -2
  21. data/lib/measures/SimplifyGeometryToSlicedBar/measure.rb +0 -2
  22. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_cofee.rb +0 -2
  23. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_geometry.rb +0 -2
  24. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_helper_methods.rb +1 -3
  25. data/lib/measures/SpaceTypeAndConstructionSetWizard/measure.rb +0 -2
  26. data/lib/measures/SurfaceMatching/measure.rb +0 -2
  27. data/lib/measures/blended_space_type_from_floor_area_ratios/measure.rb +0 -2
  28. data/lib/measures/blended_space_type_from_model/measure.rb +0 -2
  29. data/lib/measures/blended_space_type_from_model/resources/os_lib_model_simplification.rb +0 -2
  30. data/lib/measures/clone_building_from_external_model/measure.rb +0 -2
  31. data/lib/measures/create_DOE_prototype_building/measure.rb +1 -3
  32. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/measure.rb +0 -2
  33. data/lib/measures/create_bar_from_building_type_ratios/measure.rb +0 -2
  34. data/lib/measures/create_bar_from_deer_building_type_ratios/measure.rb +0 -2
  35. data/lib/measures/create_bar_from_doe_building_type_ratios/measure.rb +0 -2
  36. data/lib/measures/create_bar_from_model/measure.rb +0 -2
  37. data/lib/measures/create_deer_prototype_building/measure.rb +0 -2
  38. data/lib/measures/create_deer_prototype_building/resources/deer_building_types.rb +0 -2
  39. data/lib/measures/create_parametric_schedules/measure.rb +0 -2
  40. data/lib/measures/create_typical_building_from_model/measure.rb +0 -2
  41. data/lib/measures/create_typical_building_from_model/resources/Model.hvac.rb +0 -2
  42. data/lib/measures/create_typical_deer_building_from_model/measure.rb +0 -2
  43. data/lib/measures/create_typical_deer_building_from_model/resources/Model.hvac.rb +0 -2
  44. data/lib/measures/create_typical_doe_building_from_model/measure.rb +0 -2
  45. data/lib/measures/create_typical_doe_building_from_model/resources/Model.hvac.rb +0 -2
  46. data/lib/measures/deer_space_type_and_construction_set_wizard/measure.rb +0 -2
  47. data/lib/measures/find_and_replace_in_all_thermal_zone_names/measure.rb +0 -2
  48. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/measure.rb +0 -2
  49. data/lib/measures/merge_floorspace_js_with_model/measure.rb +0 -2
  50. data/lib/measures/merge_spaces_from_external_file/measure.rb +0 -2
  51. data/lib/measures/merge_spaces_from_external_file/resources/ScheduleTranslator.rb +4 -6
  52. data/lib/measures/radiance_measure/measure.rb +1 -3
  53. data/lib/measures/radiant_slab_with_doas/measure.rb +0 -2
  54. data/lib/measures/radiant_slab_with_doas/measure.xml +8 -8
  55. data/lib/measures/replace_geometry_by_story/measure.rb +0 -2
  56. data/lib/measures/scale_geometry/measure.rb +0 -2
  57. data/lib/openstudio/model_articulation/version.rb +1 -1
  58. data/openstudio-model-articulation.gemspec +2 -2
  59. metadata +11 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba519a8dc1aaa822a60d944a97d548f9ab33b0dd5be3833d274453bbd523d785
4
- data.tar.gz: 05aa260fa5e8a14aeca00d85a9f0bb30a1a04a55f9545650d71b0230ac366b88
3
+ metadata.gz: e5720c25f7a485c48fa2b0395380232243dbf2d2746e6795de4b794de33c39a8
4
+ data.tar.gz: de2b9ab6d2441d3679e6fa431a385a484c886bc2f74dd7b996ecaa2d8851eb4c
5
5
  SHA512:
6
- metadata.gz: 14f1b3be45603f98d6f9f1268888a29c10dc6e2218b440717863e3118260b9eed133320f9332fe02bee4a1d11337a329caa673f737b5e57baaa3a643b02469b0
7
- data.tar.gz: 344bb6bcbc66ffde8aff858b7829599de5cbfca0d4efcbbbac3a91e3a45f6ca6630b5393075222e2259b3ba261b00a9211f02c161c036222037878e6ae0853f1
6
+ metadata.gz: b7dac73f64d731cabb60b8dfb0a66ac96ce77b8f7cb45bf66e562d88f1bae01ac3fae04b5a5f1d2240b19e42364945a441a0c7d11415c0798db52aaed272d924
7
+ data.tar.gz: 2cd3023a70e8e40144a292e748ec302232de0b153b415f2ee5b34884735506aa5eda19ac5712843b8caaa79d9896a9483a5e8d1f4c7ced9c1706e2811c403290
@@ -1,26 +1,19 @@
1
1
  # OpenStudio Model Articulation Gems
2
2
 
3
- ## Version 0.2.1
4
- * Add rubocop to Rakefile
5
- * Updates the following in lib/measures:
6
- * BarAspectRationSlicedBySpaceType
7
- * InjectOsmGeometryIntoAnExternalIdf
8
- * SetWindowToWallRatioByFacade
9
- * SpaceTypeAndConstructionSetWizard
10
- * clone_building_from_external_model
11
- * create_DOE_prototype_building
12
- * create_baseline_building
13
- * create_deer_prototype_building
14
- * create_typical_building_from_model
15
- * create_typical_deer_building_from_model
16
- * create_typical_doe_building_from_model
17
- * merge_floorspace_js_with_model
18
- * merge_spaces_from_external_file
19
- * radiance_measure
20
- * Adds the following to lib/measures:
21
- * radiant_slab_with_doas
3
+ ## Version 0.3.0
4
+
5
+ * Support for OpenStudio 3.1
6
+ * Update OpenStudio Standards to 0.2.12
7
+ * Update OpenStudio Extension gem to 0.3.1
8
+ * Move errs array creation in radiant_slab_with_doas measure
9
+ * Fix radiant measure to work with Ruby 2.2 (remove Safe Navigation operator)
22
10
 
11
+ ## Version 0.2.1
23
12
 
13
+ * Support for OpenStudio 3.1
14
+ * Update OpenStudio Standards to 0.2.12
15
+ * Update OpenStudio Extension gem to 0.3.1
16
+
24
17
  ## Version 0.2.0
25
18
 
26
19
  * Support for OpenStudio 3.0
data/Rakefile CHANGED
@@ -38,9 +38,6 @@ require 'rspec/core/rake_task'
38
38
 
39
39
  RSpec::Core::RakeTask.new(:spec)
40
40
 
41
- require 'rubocop/rake_task'
42
- RuboCop::RakeTask.new
43
-
44
41
  # Load in the rake tasks from the base extension gem
45
42
  require 'openstudio/extension/rake_task'
46
43
  require 'openstudio/model_articulation'
@@ -61,9 +58,10 @@ task :delete_measure_test_outputs do
61
58
  # get measures in repo
62
59
  measures = Dir.glob('**/**/**/measure.rb')
63
60
 
64
- # create unique list of parent directories for measures.
61
+ #create unique list of parent directories for measures.
65
62
  measures.each do |i|
66
- FileUtils.rm_rf(i.gsub('measure.rb', 'tests/output'))
63
+ FileUtils.rm_rf(i.gsub("measure.rb","tests/output"))
67
64
  end
68
- puts 'deleteting test outputs'
69
- end
65
+ puts "deleteting test outputs"
66
+
67
+ end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -229,7 +227,7 @@ module OsLib_HelperMethods
229
227
  def self.log_msgs
230
228
  @msg_log.logMessages.each do |msg|
231
229
  # DLM: you can filter on log channel here for now
232
- if /openstudio.*/.match?(msg.logChannel) # /openstudio\.model\..*/
230
+ if /openstudio.*/.match(msg.logChannel) # /openstudio\.model\..*/
233
231
  # Skip certain messages that are irrelevant/misleading
234
232
  next if msg.logMessage.include?('Skipping layer') || # Annoying/bogus "Skipping layer" warnings
235
233
  msg.logChannel.include?('runmanager') || # RunManager messages
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -212,7 +210,7 @@ class CreateDOEPrototypeBuilding < OpenStudio::Measure::ModelMeasure
212
210
  def log_msgs
213
211
  @msg_log.logMessages.each do |msg|
214
212
  # DLM: you can filter on log channel here for now
215
- if /openstudio.*/.match?(msg.logChannel) # /openstudio\.model\..*/
213
+ if /openstudio.*/.match(msg.logChannel) # /openstudio\.model\..*/
216
214
  # Skip certain messages that are irrelevant/misleading
217
215
  next if msg.logMessage.include?('Skipping layer') || # Annoying/bogus "Skipping layer" warnings
218
216
  msg.logChannel.include?('runmanager') || # RunManager messages
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -74,7 +72,7 @@ class ScheduleTranslator
74
72
  val = @os_schedule.getString(i).get
75
73
 
76
74
  # Trap for interpolated schedules
77
- if val.match?(/Interpolate/)
75
+ if val =~ /Interpolate/
78
76
  puts "[WARNING] Schedule #{@sched_name} is interpolated. It will not be translated to .osm"
79
77
  return false
80
78
  end
@@ -84,7 +82,7 @@ class ScheduleTranslator
84
82
  val = val.gsub(/For\s/, 'For: ')
85
83
  val = val.gsub(/Until\s/, 'Until: ')
86
84
 
87
- if val.match?(/through:/i)
85
+ if val =~ /through:/i
88
86
  i_thru += 1
89
87
  i_for = -1
90
88
  i_until = -1
@@ -99,7 +97,7 @@ class ScheduleTranslator
99
97
  next
100
98
  end
101
99
 
102
- if val.match?(/for[:\s]/i)
100
+ if val =~ /for[:\s]/i
103
101
  i_for += 1
104
102
  i_until = -1
105
103
 
@@ -108,7 +106,7 @@ class ScheduleTranslator
108
106
  next
109
107
  end
110
108
 
111
- if val.match?(/until:/i)
109
+ if val =~ /until:/i
112
110
  i_until += 1
113
111
 
114
112
  str = val.split(':')[1..2].join(':').strip
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1319,7 +1317,7 @@ class RadianceMeasure < OpenStudio::Measure::ModelMeasure
1319
1317
  # iterate over each sensor and combine the views together
1320
1318
  new_hash = {}
1321
1319
 
1322
- t_radGlareSensorViews[space_name]&.each do |sensor, v|
1320
+ t_radGlareSensorViews[space_name].each do |sensor, v|
1323
1321
  new_hash[sensor] = v[hour]
1324
1322
  end
1325
1323
  splitvalues[space_name] += [new_hash]
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>radiant_slab_with_doas</name>
5
5
  <uid>8091a0c3-7760-4da6-adf4-133d55872816</uid>
6
- <version_id>b419f950-9f34-4477-bd99-6665edaa0d6b</version_id>
7
- <version_modified>20201009T203050Z</version_modified>
6
+ <version_id>6a2e572a-a2c1-483b-8263-0c81dfcd5f49</version_id>
7
+ <version_modified>20201026T190725Z</version_modified>
8
8
  <xml_checksum>C49A7DAB</xml_checksum>
9
9
  <class_name>RadiantSlabWithDoas</class_name>
10
10
  <display_name>Radiant Slab with DOAS</display_name>
@@ -319,12 +319,6 @@ To reduce unmet hours, use an expanded comfort range as mentioned above, remove
319
319
  <usage_type>readme</usage_type>
320
320
  <checksum>8618B20F</checksum>
321
321
  </file>
322
- <file>
323
- <filename>radiant_slab_with_doas_test.rb</filename>
324
- <filetype>rb</filetype>
325
- <usage_type>test</usage_type>
326
- <checksum>E355D2C1</checksum>
327
- </file>
328
322
  <file>
329
323
  <filename>LICENSE.md</filename>
330
324
  <filetype>md</filetype>
@@ -342,5 +336,11 @@ To reduce unmet hours, use an expanded comfort range as mentioned above, remove
342
336
  <usage_type>script</usage_type>
343
337
  <checksum>466F7B10</checksum>
344
338
  </file>
339
+ <file>
340
+ <filename>radiant_slab_with_doas_test.rb</filename>
341
+ <filetype>rb</filetype>
342
+ <usage_type>test</usage_type>
343
+ <checksum>34F1B714</checksum>
344
+ </file>
345
345
  </files>
346
346
  </measure>
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  # *******************************************************************************
4
2
  # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
5
3
  # All rights reserved.
@@ -35,6 +35,6 @@
35
35
 
36
36
  module OpenStudio
37
37
  module ModelArticulation
38
- VERSION = '0.2.1'.freeze
38
+ VERSION = '0.3.0'.freeze
39
39
  end
40
40
  end
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
29
29
  spec.required_ruby_version = '~> 2.5.0'
30
30
 
31
31
  spec.add_dependency 'bundler', '~> 2.1'
32
- spec.add_dependency 'openstudio-extension', '~> 0.2.3'
33
- spec.add_dependency 'openstudio-standards', '~> 0.2.11'
32
+ spec.add_dependency 'openstudio-extension', '~> 0.3.1'
33
+ spec.add_dependency 'openstudio-standards', '~> 0.2.12'
34
34
 
35
35
  spec.add_development_dependency 'rake', '~> 13.0'
36
36
  spec.add_development_dependency 'rspec', '~> 3.9'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-model-articulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Goldwasser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2020-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.3
33
+ version: 0.3.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.3
40
+ version: 0.3.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: openstudio-standards
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.2.11
47
+ version: 0.2.12
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.11
54
+ version: 0.2.12
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,6 @@ files:
108
108
  - extracted_files/weather/USA_GA_Atlanta-Hartsfield.Jackson.Intl.AP.722190_TMY3.ddy
109
109
  - extracted_files/weather/USA_GA_Atlanta-Hartsfield.Jackson.Intl.AP.722190_TMY3.epw
110
110
  - extracted_files/weather/USA_GA_Atlanta-Hartsfield.Jackson.Intl.AP.722190_TMY3.stat
111
- - lib/measures/.rubocop.yml
112
111
  - lib/measures/AssignConstructionSetToBuilding/LICENSE.md
113
112
  - lib/measures/AssignConstructionSetToBuilding/README.md
114
113
  - lib/measures/AssignConstructionSetToBuilding/README.md.erb
@@ -413,8 +412,8 @@ licenses: []
413
412
  metadata:
414
413
  bug_tracker_uri: https://github.com/NREL/openstudio-model-articulation-gem/issues
415
414
  changelog_uri: https://github.com/NREL/openstudio-model-articulation-gem/blob/develop/CHANGELOG.md
416
- source_code_uri: https://github.com/NREL/openstudio-model-articulation-gem/tree/v0.2.1
417
- post_install_message:
415
+ source_code_uri: https://github.com/NREL/openstudio-model-articulation-gem/tree/v0.3.0
416
+ post_install_message:
418
417
  rdoc_options: []
419
418
  require_paths:
420
419
  - lib
@@ -429,9 +428,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
429
428
  - !ruby/object:Gem::Version
430
429
  version: '0'
431
430
  requirements: []
432
- rubyforge_project:
431
+ rubyforge_project:
433
432
  rubygems_version: 2.7.6.2
434
- signing_key:
433
+ signing_key:
435
434
  specification_version: 4
436
435
  summary: Library and measures for OpenStudio Model Articulation
437
436
  test_files: []