openstudio-geb 0.2.1 → 0.3.1r

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +6 -1
  5. data/doc_templates/LICENSE.md +7 -21
  6. data/doc_templates/copyright_erb.txt +2 -32
  7. data/doc_templates/copyright_js.txt +2 -2
  8. data/doc_templates/copyright_ruby.txt +3 -33
  9. data/lib/measures/Add Output Variable/LICENSE.md +7 -21
  10. data/lib/measures/Add Output Variable/measure.rb +3 -33
  11. data/lib/measures/Add Output Variable/measure.xml +128 -125
  12. data/lib/measures/Add Output Variable/tests/AddOutputVariable_Test.rb +2 -32
  13. data/lib/measures/AddElectricVehicleChargingLoad/LICENSE.md +13 -1
  14. data/lib/measures/AddElectricVehicleChargingLoad/measure.rb +16 -52
  15. data/lib/measures/AddElectricVehicleChargingLoad/measure.xml +24 -23
  16. data/lib/measures/AddElectricVehicleChargingLoad/tests/add_electric_vehicle_charging_load_test.rb +2 -32
  17. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/LICENSE.md +7 -21
  18. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/README.md +22 -16
  19. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/measure.rb +14 -35
  20. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/measure.xml +41 -30
  21. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/tests/AdjustThermostatSetpointsByDegreesForPeakHours_Test.rb +2 -32
  22. data/lib/measures/Enable Demand Controlled Ventilation/LICENSE.md +7 -21
  23. data/lib/measures/Enable Demand Controlled Ventilation/measure.rb +2 -32
  24. data/lib/measures/Enable Demand Controlled Ventilation/measure.xml +14 -13
  25. data/lib/measures/Enable Demand Controlled Ventilation/tests/EnableDemandControlledVentilation_Test.rb +2 -32
  26. data/lib/measures/GEB Metrics Report/LICENSE.md +13 -1
  27. data/lib/measures/GEB Metrics Report/measure.rb +2 -37
  28. data/lib/measures/GEB Metrics Report/measure.xml +238 -23
  29. data/lib/measures/GEB Metrics Report/resources/os_lib_helper_methods.rb +2 -32
  30. data/lib/measures/GEB Metrics Report/resources/os_lib_reporting.rb +2 -32
  31. data/lib/measures/GEB Metrics Report/tests/geb_metrics_report_test.rb +2 -32
  32. data/lib/measures/add_ceiling_fan/LICENSE.md +13 -0
  33. data/lib/measures/add_ceiling_fan/README.md +119 -0
  34. data/lib/measures/add_ceiling_fan/README.md.erb +45 -0
  35. data/lib/measures/add_ceiling_fan/docs/.gitkeep +0 -0
  36. data/lib/measures/add_ceiling_fan/measure.rb +565 -0
  37. data/lib/measures/add_ceiling_fan/measure.xml +226 -0
  38. data/lib/measures/add_ceiling_fan/tests/CZ06RV2.epw +8768 -0
  39. data/lib/measures/add_ceiling_fan/tests/MediumOffice-90.1-2010-ASHRAE 169-2013-5A.osm +13669 -0
  40. data/lib/measures/add_ceiling_fan/tests/SFD_1story_UB_UA_ASHP2_HPWH.osm +13110 -0
  41. data/lib/measures/add_ceiling_fan/tests/add_ceiling_fan_test.rb +82 -0
  42. data/lib/measures/add_chilled_water_storage_tank/LICENSE.md +13 -1
  43. data/lib/measures/add_chilled_water_storage_tank/measure.rb +56 -56
  44. data/lib/measures/add_chilled_water_storage_tank/measure.xml +201 -28
  45. data/lib/measures/add_chilled_water_storage_tank/tests/add_chilled_water_storage_tank_test.rb +4 -34
  46. data/lib/measures/add_chilled_water_storage_tank/tests/example_model.osm +8077 -21624
  47. data/lib/measures/add_electrochromic_window/LICENSE.md +13 -1
  48. data/lib/measures/add_electrochromic_window/measure.rb +2 -32
  49. data/lib/measures/add_electrochromic_window/measure.xml +28 -27
  50. data/lib/measures/add_electrochromic_window/tests/add_electrochromic_window_test.rb +2 -32
  51. data/lib/measures/add_exterior_blinds_and_control/LICENSE.md +13 -1
  52. data/lib/measures/add_exterior_blinds_and_control/measure.rb +2 -34
  53. data/lib/measures/add_exterior_blinds_and_control/measure.xml +15 -26
  54. data/lib/measures/add_exterior_blinds_and_control/tests/add_exterior_blinds_and_control_test.rb +2 -34
  55. data/lib/measures/add_heat_pump_water_heater/LICENSE.md +7 -21
  56. data/lib/measures/add_heat_pump_water_heater/measure.rb +2 -32
  57. data/lib/measures/add_heat_pump_water_heater/measure.xml +89 -17
  58. data/lib/measures/add_heat_pump_water_heater/tests/add_hpwh_test.rb +2 -32
  59. data/lib/measures/add_interior_blinds_and_control/LICENSE.md +13 -1
  60. data/lib/measures/add_interior_blinds_and_control/measure.rb +2 -32
  61. data/lib/measures/add_interior_blinds_and_control/measure.xml +21 -33
  62. data/lib/measures/add_interior_blinds_and_control/tests/add_exterior_blinds_and_control_test.rb +2 -32
  63. data/lib/measures/add_natural_ventilation_with_hybrid_control/LICENSE.md +13 -0
  64. data/lib/measures/add_natural_ventilation_with_hybrid_control/README.md +133 -0
  65. data/lib/measures/add_natural_ventilation_with_hybrid_control/README.md.erb +45 -0
  66. data/lib/measures/add_natural_ventilation_with_hybrid_control/docs/.gitkeep +0 -0
  67. data/lib/measures/add_natural_ventilation_with_hybrid_control/measure.rb +453 -0
  68. data/lib/measures/add_natural_ventilation_with_hybrid_control/measure.xml +247 -0
  69. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/CZ06RV2.epw +8768 -0
  70. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/MediumOffice-90.1-2010-ASHRAE 169-2013-5A.osm +13669 -0
  71. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/SmallHotel-2A.osm +42899 -0
  72. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/USA_NY_Buffalo.Niagara.Intl.AP.725280_TMY3.epw +8768 -0
  73. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/USA_TX_Houston-Bush.Intercontinental.AP.722430_TMY3.epw +8768 -0
  74. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/add_natural_ventilation_with_hybrid_control_test.rb +95 -0
  75. data/lib/measures/add_rooftop_pv_simple/LICENSE.md +7 -21
  76. data/lib/measures/add_rooftop_pv_simple/measure.rb +2 -32
  77. data/lib/measures/add_rooftop_pv_simple/measure.xml +11 -5
  78. data/lib/measures/add_rooftop_pv_simple/tests/add_rooftop_pv_test.rb +2 -32
  79. data/lib/measures/adjust_dhw_setpoint/LICENSE.md +13 -1
  80. data/lib/measures/adjust_dhw_setpoint/measure.rb +2 -32
  81. data/lib/measures/adjust_dhw_setpoint/measure.xml +34 -21
  82. data/lib/measures/adjust_dhw_setpoint/tests/adjust_dhw_setpoint_test.rb +2 -32
  83. data/lib/measures/average_ventilation_for_peak_hours/LICENSE.md +13 -1
  84. data/lib/measures/average_ventilation_for_peak_hours/README.md +5 -45
  85. data/lib/measures/average_ventilation_for_peak_hours/measure.rb +2 -32
  86. data/lib/measures/average_ventilation_for_peak_hours/measure.xml +24 -79
  87. data/lib/measures/average_ventilation_for_peak_hours/tests/average_ventilation_for_peak_hours_test.rb +2 -32
  88. data/lib/measures/enable_occupancy_driven_lighting/LICENSE.md +13 -1
  89. data/lib/measures/enable_occupancy_driven_lighting/measure.rb +2 -32
  90. data/lib/measures/enable_occupancy_driven_lighting/measure.xml +28 -27
  91. data/lib/measures/enable_occupancy_driven_lighting/tests/enable_occupancy_driven_lighting_test.rb +2 -32
  92. data/lib/measures/precooling/LICENSE.md +7 -21
  93. data/lib/measures/precooling/measure.rb +2 -33
  94. data/lib/measures/precooling/measure.xml +12 -11
  95. data/lib/measures/preheating/LICENSE.md +7 -21
  96. data/lib/measures/preheating/measure.rb +2 -33
  97. data/lib/measures/preheating/measure.xml +18 -17
  98. data/lib/measures/reduce_domestic_hot_water_use_for_peak_hours/LICENSE.md +13 -1
  99. data/lib/measures/reduce_domestic_hot_water_use_for_peak_hours/measure.rb +2 -32
  100. data/lib/measures/reduce_domestic_hot_water_use_for_peak_hours/measure.xml +34 -27
  101. data/lib/measures/reduce_domestic_hot_water_use_for_peak_hours/tests/reduce_domestic_hot_water_use_for_peak_hours_test.rb +2 -32
  102. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/LICENSE.md +13 -1
  103. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/README.md +3 -3
  104. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/measure.rb +2 -32
  105. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/measure.xml +25 -18
  106. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/tests/reduce_epd_by_percentage_for_peak_hours_copy_test.rb +2 -32
  107. data/lib/measures/reduce_exterior_lighting_loads/LICENSE.md +13 -0
  108. data/lib/measures/reduce_exterior_lighting_loads/README.md +79 -0
  109. data/lib/measures/reduce_exterior_lighting_loads/README.md.erb +45 -0
  110. data/lib/measures/reduce_exterior_lighting_loads/docs/.gitkeep +0 -0
  111. data/lib/measures/reduce_exterior_lighting_loads/measure.rb +385 -0
  112. data/lib/measures/reduce_exterior_lighting_loads/measure.xml +195 -0
  113. data/lib/measures/reduce_exterior_lighting_loads/tests/CZ06RV2.epw +8768 -0
  114. data/lib/measures/reduce_exterior_lighting_loads/tests/SFD_1story_UB_UA_ASHP2_HPWH.osm +13110 -0
  115. data/lib/measures/reduce_exterior_lighting_loads/tests/example_model.osm +8077 -0
  116. data/lib/measures/reduce_exterior_lighting_loads/tests/reduce_exterior_lighting_loads_test.rb +81 -0
  117. data/lib/measures/reduce_lpd_by_percentage_for_peak_hours/LICENSE.md +13 -1
  118. data/lib/measures/reduce_lpd_by_percentage_for_peak_hours/measure.rb +2 -32
  119. data/lib/measures/reduce_lpd_by_percentage_for_peak_hours/measure.xml +30 -23
  120. data/lib/measures/reduce_lpd_by_percentage_for_peak_hours/tests/reduce_lpd_by_percentage_for_peak_hours_test.rb +2 -32
  121. data/lib/openstudio/geb/extension.rb +2 -32
  122. data/lib/openstudio/geb/logging.rb +2 -32
  123. data/lib/openstudio/geb/run.rb +2 -32
  124. data/lib/openstudio/geb/utilities.rb +2 -32
  125. data/lib/openstudio/geb/version.rb +3 -33
  126. data/lib/openstudio/geb.rb +2 -32
  127. data/lib/openstudio-geb.rb +5 -0
  128. data/openstudio-geb.gemspec +2 -3
  129. metadata +41 -8
@@ -0,0 +1,81 @@
1
+ # *******************************************************************************
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
4
+ # *******************************************************************************
5
+
6
+ require 'openstudio'
7
+ require 'openstudio/measure/ShowRunnerOutput'
8
+ require 'minitest/autorun'
9
+ require_relative '../measure.rb'
10
+ require 'fileutils'
11
+ require 'json'
12
+
13
+ class ReduceExteriorLightingLoadsTest < Minitest::Test
14
+ # def setup
15
+ # end
16
+
17
+ # def teardown
18
+ # end
19
+
20
+ def test_reduce_exterior_lighting_loads
21
+ # create an instance of the measure
22
+ measure = ReduceExteriorLightingLoads.new
23
+
24
+ # create runner with empty OSW
25
+ osw = OpenStudio::WorkflowJSON.new
26
+ runner = OpenStudio::Measure::OSRunner.new(osw)
27
+
28
+ # load the test model
29
+ translator = OpenStudio::OSVersion::VersionTranslator.new
30
+ path = "#{File.dirname(__FILE__)}/SFD_1story_UB_UA_ASHP2_HPWH.osm"
31
+ model = translator.loadModel(path)
32
+ assert(!model.empty?)
33
+ model = model.get
34
+
35
+ # get arguments
36
+ arguments = measure.arguments(model)
37
+ argument_map = OpenStudio::Measure.convertOSArgumentVectorToMap(arguments)
38
+
39
+ # create hash of argument values.
40
+ # If the argument has a default that you want to use, you don't need it in the hash
41
+ args_hash = {}
42
+ # args_hash['use_daylight_control'] = false
43
+
44
+ # populate argument with specified hash value if specified
45
+ arguments.each do |arg|
46
+ temp_arg_var = arg.clone
47
+ if args_hash.key?(arg.name)
48
+ assert(temp_arg_var.setValue(args_hash[arg.name]))
49
+ end
50
+ argument_map[arg.name] = temp_arg_var
51
+ end
52
+
53
+ # run the measure
54
+ measure.run(model, runner, argument_map)
55
+ result = runner.result
56
+
57
+ # show the output
58
+ show_output(result)
59
+
60
+ # assert that it ran correctly
61
+ assert_equal('Success', result.value.valueName)
62
+
63
+ # save the model to test output directory
64
+ output_file_path = "#{File.dirname(__FILE__)}//output/test_output.osm"
65
+ model.save(output_file_path, true)
66
+
67
+ # test run the modified model
68
+ osw = {}
69
+ osw["weather_file"] = File.join(File.dirname(__FILE__ ), "CZ06RV2.epw")
70
+ osw["seed_file"] = output_file_path
71
+ osw_path = "#{File.dirname(__FILE__)}//output/test_output.osw"
72
+ File.open(osw_path, 'w') do |f|
73
+ f << JSON.pretty_generate(osw)
74
+ end
75
+ cli_path = OpenStudio.getOpenStudioCLI
76
+ cmd = "\"#{cli_path}\" run -w \"#{osw_path}\""
77
+ puts cmd
78
+ system(cmd)
79
+
80
+ end
81
+ end
@@ -1 +1,13 @@
1
- Insert your license here
1
+ OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Redistribution of this software, without modification, must refer to the software by the same designation. Redistribution of a modified version of this software (i) may not refer to the modified version by the same designation, or by any confusingly similar designation, and (ii) must refer to the underlying software originally provided by Alliance as “OpenStudio®”. Except to comply with the foregoing, the term “OpenStudio®”, or any confusingly similar designation may not be used to refer to any modified version of this software or any modified version of the underlying software originally provided by Alliance without the prior written consent of Alliance.
10
+
11
+ 4. The name of the copyright holder(s), any contributors, the United States Government, the United States Department of Energy, or any of their employees may not be used to endorse or promote products derived from this software without specific prior written permission from the respective party.
12
+
13
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  # insert your copyright here
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>reduce_lpd_by_percentage_for_peak_hours</name>
4
5
  <uid>a305ea88-b32c-4e91-bdd0-4ea7d41d7388</uid>
5
- <version_id>db7957d2-3baf-4c04-a3ff-2adf85c7b948</version_id>
6
- <version_modified>20210915T221802Z</version_modified>
6
+ <version_id>87894ed1-6370-400a-8dbc-b50db3610784</version_id>
7
+ <version_modified>20230718T215426Z</version_modified>
7
8
  <xml_checksum>81C5D8E7</xml_checksum>
8
9
  <class_name>ReduceLPDByPercentageForPeakHours</class_name>
9
10
  <display_name>Reduce LPD by Percentage for Peak Hours</display_name>
@@ -63,7 +64,7 @@
63
64
  <type>String</type>
64
65
  <required>false</required>
65
66
  <model_dependent>false</model_dependent>
66
- <default_value>03-01</default_value>
67
+ <default_value>06-01</default_value>
67
68
  </argument>
68
69
  <argument>
69
70
  <name>end_date1</name>
@@ -72,7 +73,7 @@
72
73
  <type>String</type>
73
74
  <required>false</required>
74
75
  <model_dependent>false</model_dependent>
75
- <default_value>05-01</default_value>
76
+ <default_value>09-30</default_value>
76
77
  </argument>
77
78
  <argument>
78
79
  <name>start_date2</name>
@@ -111,8 +112,8 @@
111
112
  <default_value></default_value>
112
113
  </argument>
113
114
  </arguments>
114
- <outputs/>
115
- <provenances/>
115
+ <outputs />
116
+ <provenances />
116
117
  <tags>
117
118
  <tag>Electric Lighting.Electric Lighting Controls</tag>
118
119
  </tags>
@@ -139,12 +140,6 @@
139
140
  </attribute>
140
141
  </attributes>
141
142
  <files>
142
- <file>
143
- <filename>LICENSE.md</filename>
144
- <filetype>md</filetype>
145
- <usage_type>license</usage_type>
146
- <checksum>CD7F5672</checksum>
147
- </file>
148
143
  <file>
149
144
  <filename>README.md.erb</filename>
150
145
  <filetype>erb</filetype>
@@ -157,18 +152,30 @@
157
152
  <usage_type>doc</usage_type>
158
153
  <checksum>00000000</checksum>
159
154
  </file>
160
- <file>
161
- <filename>reduce_lpd_by_percentage_for_peak_hours_test.rb</filename>
162
- <filetype>rb</filetype>
163
- <usage_type>test</usage_type>
164
- <checksum>91264C7C</checksum>
165
- </file>
166
155
  <file>
167
156
  <filename>example_model.osm</filename>
168
157
  <filetype>osm</filetype>
169
158
  <usage_type>test</usage_type>
170
159
  <checksum>53D14E69</checksum>
171
160
  </file>
161
+ <file>
162
+ <filename>README.md</filename>
163
+ <filetype>md</filetype>
164
+ <usage_type>readme</usage_type>
165
+ <checksum>66D5DFAC</checksum>
166
+ </file>
167
+ <file>
168
+ <filename>LICENSE.md</filename>
169
+ <filetype>md</filetype>
170
+ <usage_type>license</usage_type>
171
+ <checksum>BFFB1AA6</checksum>
172
+ </file>
173
+ <file>
174
+ <filename>reduce_lpd_by_percentage_for_peak_hours_test.rb</filename>
175
+ <filetype>rb</filetype>
176
+ <usage_type>test</usage_type>
177
+ <checksum>2FDC7C07</checksum>
178
+ </file>
172
179
  <file>
173
180
  <version>
174
181
  <software_program>OpenStudio</software_program>
@@ -178,13 +185,13 @@
178
185
  <filename>measure.rb</filename>
179
186
  <filetype>rb</filetype>
180
187
  <usage_type>script</usage_type>
181
- <checksum>DEFC33B4</checksum>
188
+ <checksum>61627297</checksum>
182
189
  </file>
183
190
  <file>
184
- <filename>README.md</filename>
185
- <filetype>md</filetype>
186
- <usage_type>readme</usage_type>
187
- <checksum>66D5DFAC</checksum>
191
+ <filename>test.osm</filename>
192
+ <filetype>osm</filetype>
193
+ <usage_type>test</usage_type>
194
+ <checksum>F0332415</checksum>
188
195
  </file>
189
196
  </files>
190
197
  </measure>
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  # insert your copyright here
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  require 'openstudio/extension'
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  # Open a log for the library
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  require_relative 'logging'
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  # require 'oga'
@@ -1,40 +1,10 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  module OpenStudio
37
7
  module Geb
38
- VERSION = '0.2.1'.freeze
8
+ VERSION = '0.3.1r'.freeze
39
9
  end
40
10
  end
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  require 'openstudio/geb/version'
@@ -1 +1,6 @@
1
+ # *******************************************************************************
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
4
+ # *******************************************************************************
5
+
1
6
  require_relative 'openstudio/geb'
@@ -26,8 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'rake', '~> 13.0'
27
27
  spec.add_development_dependency 'rspec', '3.7.0'
28
28
  spec.add_development_dependency 'rubocop', '~> 1.15.0'
29
- # spec.add_development_dependency 'oga', '~>3.4'
30
29
 
31
- spec.add_dependency 'openstudio-extension', '~> 0.6.0'
32
- spec.add_dependency 'openstudio-standards', '~> 0.3.0'
30
+ spec.add_dependency 'openstudio-extension', '~> 0.6.1'
31
+ spec.add_dependency 'openstudio-standards', '~> 0.4.0'
33
32
  end