openstudio-calibration 0.1.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +7 -0
  4. data/CHANGELOG.md +40 -8
  5. data/Gemfile +6 -3
  6. data/Jenkinsfile +7 -2
  7. data/LICENSE.md +1 -1
  8. data/README.md +15 -4
  9. data/Rakefile +6 -6
  10. data/doc_templates/LICENSE.md +1 -1
  11. data/doc_templates/copyright_erb.txt +1 -1
  12. data/doc_templates/copyright_js.txt +1 -1
  13. data/doc_templates/copyright_ruby.txt +1 -1
  14. data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +1 -1
  15. data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +1 -1
  16. data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +12 -11
  17. data/lib/measures/AddMonthlyUtilityData/LICENSE.md +1 -1
  18. data/lib/measures/AddMonthlyUtilityData/measure.rb +1 -1
  19. data/lib/measures/AddMonthlyUtilityData/measure.xml +13 -12
  20. data/lib/measures/CalibrationReports/LICENSE.md +1 -1
  21. data/lib/measures/CalibrationReports/README.md +2 -2
  22. data/lib/measures/CalibrationReports/measure.rb +1 -1
  23. data/lib/measures/CalibrationReports/measure.xml +11 -11
  24. data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +1 -1
  25. data/lib/measures/CalibrationReportsEnhanced/measure.rb +2 -2
  26. data/lib/measures/CalibrationReportsEnhanced/measure.xml +18 -17
  27. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +1 -1
  28. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +1 -1
  29. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +14 -13
  30. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +1 -1
  31. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +1 -1
  32. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +14 -13
  33. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +1 -1
  34. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +1 -1
  35. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +14 -13
  36. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +1 -1
  37. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +1 -1
  38. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +14 -13
  39. data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +1 -1
  40. data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +1 -1
  41. data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +14 -13
  42. data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +1 -1
  43. data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +1 -1
  44. data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +14 -13
  45. data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +1 -1
  46. data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +1 -1
  47. data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +14 -13
  48. data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +1 -1
  49. data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +1 -1
  50. data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +14 -13
  51. data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +1 -1
  52. data/lib/measures/CoilHeatingGasMultiplier/measure.rb +1 -1
  53. data/lib/measures/CoilHeatingGasMultiplier/measure.xml +14 -13
  54. data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +1 -1
  55. data/lib/measures/CoilHeatingGasPercentChange/measure.rb +1 -1
  56. data/lib/measures/CoilHeatingGasPercentChange/measure.xml +14 -13
  57. data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +1 -1
  58. data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +1 -1
  59. data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +14 -13
  60. data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +1 -1
  61. data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +1 -1
  62. data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +14 -13
  63. data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +1 -1
  64. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +1 -1
  65. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +12 -11
  66. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +1 -1
  67. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.rb +1 -1
  68. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +12 -11
  69. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +1 -1
  70. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +3 -3
  71. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +24 -11
  72. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +1 -1
  73. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +3 -3
  74. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +24 -11
  75. data/lib/measures/FansMultiplier/LICENSE.md +1 -1
  76. data/lib/measures/FansMultiplier/measure.rb +1 -1
  77. data/lib/measures/FansMultiplier/measure.xml +14 -13
  78. data/lib/measures/FansPercentChange/LICENSE.md +1 -1
  79. data/lib/measures/FansPercentChange/measure.rb +1 -1
  80. data/lib/measures/FansPercentChange/measure.xml +14 -13
  81. data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +1 -1
  82. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +1 -1
  83. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +16 -15
  84. data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +1 -1
  85. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +1 -1
  86. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +16 -15
  87. data/lib/measures/HardSizeHvac/LICENSE.md +1 -1
  88. data/lib/measures/HardSizeHvac/measure.rb +1 -1
  89. data/lib/measures/HardSizeHvac/measure.xml +13 -12
  90. data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +1 -1
  91. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +1 -1
  92. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +12 -11
  93. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +1 -1
  94. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +1 -1
  95. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +12 -11
  96. data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +1 -1
  97. data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +3 -3
  98. data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +24 -11
  99. data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +1 -1
  100. data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +3 -3
  101. data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +24 -11
  102. data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +1 -1
  103. data/lib/measures/TimeseriesObjectiveFunction/README.md +5 -171
  104. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +3 -7
  105. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +84 -9
  106. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +6 -1
  107. data/lib/measures/TimeseriesPlot/LICENSE.md +1 -1
  108. data/lib/measures/TimeseriesPlot/README.md +5 -35
  109. data/lib/measures/TimeseriesPlot/measure.rb +1 -1
  110. data/lib/measures/TimeseriesPlot/measure.xml +28 -13
  111. data/lib/measures/TimeseriesPlot/resources/report.html.erb +6 -1
  112. data/lib/measures/WaterHeaterMixedMultiplier/LICENSE.md +1 -1
  113. data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +1 -1
  114. data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +14 -13
  115. data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +1 -1
  116. data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +1 -1
  117. data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +14 -13
  118. data/lib/measures/{CalibrationReportsEnhanced21 → inspect_and_edit_parametric_schedules}/LICENSE.md +1 -1
  119. data/lib/measures/inspect_and_edit_parametric_schedules/README.md +41 -0
  120. data/lib/measures/{zone_report → inspect_and_edit_parametric_schedules}/README.md.erb +12 -1
  121. data/lib/measures/inspect_and_edit_parametric_schedules/docs/.gitkeep +0 -0
  122. data/lib/measures/inspect_and_edit_parametric_schedules/docs/apply_measures_now.png +0 -0
  123. data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +224 -0
  124. data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +125 -0
  125. data/lib/measures/{zone_report → shift_hours_of_operation}/LICENSE.md +1 -1
  126. data/lib/measures/shift_hours_of_operation/README.md +147 -0
  127. data/lib/measures/{MaalkaMonthlyJSONUtilityData → shift_hours_of_operation}/README.md.erb +5 -0
  128. data/lib/measures/shift_hours_of_operation/docs/.gitkeep +0 -0
  129. data/lib/measures/shift_hours_of_operation/measure.rb +525 -0
  130. data/lib/measures/shift_hours_of_operation/measure.xml +280 -0
  131. data/lib/openstudio/{calibration_measures → calibration}/extension.rb +2 -2
  132. data/lib/openstudio/{calibration_measures → calibration}/version.rb +3 -3
  133. data/lib/openstudio/{calibration_measures.rb → calibration.rb} +3 -3
  134. data/lib/{openstudio-calibration-measures.rb → openstudio-calibration.rb} +2 -2
  135. data/openstudio-calibration.gemspec +38 -0
  136. metadata +50 -61
  137. data/lib/measures/AddMonthlyUtilityData/tests/AddMonthlyUtilityData_Test.rb +0 -88
  138. data/lib/measures/AddMonthlyUtilityData/tests/electric_billed_usages.json +0 -198
  139. data/lib/measures/AddMonthlyUtilityData/tests/gas_billed_usages.json +0 -198
  140. data/lib/measures/CalibrationReports/tests/CalibrationReports_Test.rb +0 -523
  141. data/lib/measures/CalibrationReports/tests/ExampleModel.osm +0 -10497
  142. data/lib/measures/CalibrationReports/tests/ExampleModelNoDemandInput.osm +0 -10560
  143. data/lib/measures/CalibrationReports/tests/ExampleModelNoGasInput.osm +0 -10456
  144. data/lib/measures/CalibrationReports/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
  145. data/lib/measures/CalibrationReportsEnhanced/tests/CalibrationReportsEnhanced_Test.rb +0 -734
  146. data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel.osm +0 -10497
  147. data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel_FuelOil.osm +0 -12740
  148. data/lib/measures/CalibrationReportsEnhanced/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
  149. data/lib/measures/CalibrationReportsEnhanced21/README.md +0 -109
  150. data/lib/measures/CalibrationReportsEnhanced21/README.md.erb +0 -42
  151. data/lib/measures/CalibrationReportsEnhanced21/measure.rb +0 -690
  152. data/lib/measures/CalibrationReportsEnhanced21/measure.xml +0 -269
  153. data/lib/measures/CalibrationReportsEnhanced21/resources/report.html.in +0 -380
  154. data/lib/measures/MaalkaMonthlyJSONUtilityData/LICENSE.md +0 -27
  155. data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md +0 -104
  156. data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.rb +0 -304
  157. data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.xml +0 -216
  158. data/lib/measures/zone_report/README.md +0 -26
  159. data/lib/measures/zone_report/measure.rb +0 -706
  160. data/lib/measures/zone_report/measure.xml +0 -67
  161. data/lib/measures/zone_report/resources/report.html.in +0 -342
  162. data/openstudio-calibration-measures.gemspec +0 -30
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>r_value_of_insulation_for_construction_percentage_change</name>
4
5
  <uid>7ee248fd-052a-48d6-a8eb-b1fc6a0dc348</uid>
5
- <version_id>d3e7d8ca-283c-4a2d-ba56-d012b3615261</version_id>
6
- <version_modified>20200325T030945Z</version_modified>
6
+ <version_id>5c1ec598-5269-4fec-8c70-ef1c1ffb3070</version_id>
7
+ <version_modified>20210304T152739Z</version_modified>
7
8
  <xml_checksum>0BF71A3E</xml_checksum>
8
9
  <class_name>RValueOfInsulationForConstructionPercentageChange</class_name>
9
10
  <display_name>Change R-value of Insulation Layer for Construction By a Specified Percentage</display_name>
@@ -26,8 +27,8 @@
26
27
  <default_value>0</default_value>
27
28
  </argument>
28
29
  </arguments>
29
- <outputs/>
30
- <provenances/>
30
+ <outputs />
31
+ <provenances />
31
32
  <tags>
32
33
  <tag>Envelope.Opaque</tag>
33
34
  </tags>
@@ -99,12 +100,6 @@
99
100
  </attribute>
100
101
  </attributes>
101
102
  <files>
102
- <file>
103
- <filename>LICENSE.md</filename>
104
- <filetype>md</filetype>
105
- <usage_type>license</usage_type>
106
- <checksum>E0468DD6</checksum>
107
- </file>
108
103
  <file>
109
104
  <filename>README.md.erb</filename>
110
105
  <filetype>erb</filetype>
@@ -117,6 +112,12 @@
117
112
  <usage_type>readme</usage_type>
118
113
  <checksum>49A7DFFE</checksum>
119
114
  </file>
115
+ <file>
116
+ <filename>LICENSE.md</filename>
117
+ <filetype>md</filetype>
118
+ <usage_type>license</usage_type>
119
+ <checksum>A21A3ED2</checksum>
120
+ </file>
120
121
  <file>
121
122
  <version>
122
123
  <software_program>OpenStudio</software_program>
@@ -126,7 +127,7 @@
126
127
  <filename>measure.rb</filename>
127
128
  <filetype>rb</filetype>
128
129
  <usage_type>script</usage_type>
129
- <checksum>6F9D31D5</checksum>
130
+ <checksum>6C4824F5</checksum>
130
131
  </file>
131
132
  </files>
132
133
  </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:
@@ -232,8 +232,8 @@ class RoofThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasure
232
232
  new_construction.setLayer(lay_index, new_layer)
233
233
  # calculate properties of new layer and output nice names
234
234
  final_r_val[con_index][lay_index] = new_construction.layers[lay_index].to_OpaqueMaterial.get.thermalResistance if layer.to_OpaqueMaterial.is_initialized
235
- final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getSolarAbsorptance.value if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
236
- final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getDensity.value if layer.to_StandardOpaqueMaterial.is_initialized
235
+ final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.solarAbsorptance if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
236
+ final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.density if layer.to_StandardOpaqueMaterial.is_initialized
237
237
  final_r_val_d[con_index][lay_index] = neat_numbers(final_r_val[con_index][lay_index])
238
238
  final_sol_abs_d[con_index] = neat_numbers(final_sol_abs[con_index]) if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
239
239
  final_thm_mass_d[con_index][lay_index] = neat_numbers(final_thm_mass[con_index][lay_index]) if layer.to_StandardOpaqueMaterial.is_initialized
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>roof_thermal_properties_multiplier</name>
4
5
  <uid>6c4eb22b-770f-456c-bcd1-084cfad89eeb</uid>
5
- <version_id>9a139a76-636f-4ac8-82e0-7d59fcb85d25</version_id>
6
- <version_modified>20200325T030949Z</version_modified>
6
+ <version_id>9bd50108-91e3-43b5-a78e-8ccc0217b3af</version_id>
7
+ <version_modified>20210304T152739Z</version_modified>
7
8
  <xml_checksum>31085437</xml_checksum>
8
9
  <class_name>RoofThermalPropertiesMultiplier</class_name>
9
10
  <display_name>Roof Thermal Properties Multiplier</display_name>
@@ -35,8 +36,8 @@
35
36
  <default_value>1</default_value>
36
37
  </argument>
37
38
  </arguments>
38
- <outputs/>
39
- <provenances/>
39
+ <outputs />
40
+ <provenances />
40
41
  <tags>
41
42
  <tag>Envelope.Opaque</tag>
42
43
  <tag>Calibration</tag>
@@ -64,12 +65,6 @@
64
65
  </attribute>
65
66
  </attributes>
66
67
  <files>
67
- <file>
68
- <filename>LICENSE.md</filename>
69
- <filetype>md</filetype>
70
- <usage_type>license</usage_type>
71
- <checksum>E0468DD6</checksum>
72
- </file>
73
68
  <file>
74
69
  <filename>README.md.erb</filename>
75
70
  <filetype>erb</filetype>
@@ -82,6 +77,18 @@
82
77
  <usage_type>readme</usage_type>
83
78
  <checksum>44F0EAFF</checksum>
84
79
  </file>
80
+ <file>
81
+ <filename>example_model.osm</filename>
82
+ <filetype>osm</filetype>
83
+ <usage_type>test</usage_type>
84
+ <checksum>53D14E69</checksum>
85
+ </file>
86
+ <file>
87
+ <filename>LICENSE.md</filename>
88
+ <filetype>md</filetype>
89
+ <usage_type>license</usage_type>
90
+ <checksum>A21A3ED2</checksum>
91
+ </file>
85
92
  <file>
86
93
  <version>
87
94
  <software_program>OpenStudio</software_program>
@@ -91,7 +98,13 @@
91
98
  <filename>measure.rb</filename>
92
99
  <filetype>rb</filetype>
93
100
  <usage_type>script</usage_type>
94
- <checksum>EEBB9B30</checksum>
101
+ <checksum>B99C2385</checksum>
102
+ </file>
103
+ <file>
104
+ <filename>RoofThermalPropertiesMultiplier_test.rb</filename>
105
+ <filetype>rb</filetype>
106
+ <usage_type>test</usage_type>
107
+ <checksum>F8BC079A</checksum>
95
108
  </file>
96
109
  </files>
97
110
  </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:
@@ -222,8 +222,8 @@ class RoofThermalPropertiesPercentChange < OpenStudio::Measure::ModelMeasure
222
222
  new_construction.setLayer(lay_index, new_layer)
223
223
  # calculate properties of new layer and output nice names
224
224
  final_r_val[con_index][lay_index] = new_construction.layers[lay_index].to_OpaqueMaterial.get.thermalResistance if layer.to_OpaqueMaterial.is_initialized
225
- final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getSolarAbsorptance.value if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
226
- final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getDensity.value if layer.to_StandardOpaqueMaterial.is_initialized
225
+ final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.solarAbsorptance if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
226
+ final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.density if layer.to_StandardOpaqueMaterial.is_initialized
227
227
  final_r_val_d[con_index][lay_index] = neat_numbers(final_r_val[con_index][lay_index])
228
228
  final_sol_abs_d[con_index] = neat_numbers(final_sol_abs[con_index]) if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
229
229
  final_thm_mass_d[con_index][lay_index] = neat_numbers(final_thm_mass[con_index][lay_index]) if layer.to_StandardOpaqueMaterial.is_initialized
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>roof_thermal_properties_percent_change</name>
4
5
  <uid>07516685-60fd-4da8-9872-1154a995047d</uid>
5
- <version_id>67036cfb-21bd-435f-900c-26b300c87f76</version_id>
6
- <version_modified>20200325T030945Z</version_modified>
6
+ <version_id>aa00c9cc-3008-44d9-90c8-a50bac1cec43</version_id>
7
+ <version_modified>20210304T152739Z</version_modified>
7
8
  <xml_checksum>31085437</xml_checksum>
8
9
  <class_name>RoofThermalPropertiesPercentChange</class_name>
9
10
  <display_name>Roof Thermal Properties Percent Change</display_name>
@@ -35,8 +36,8 @@
35
36
  <default_value>0</default_value>
36
37
  </argument>
37
38
  </arguments>
38
- <outputs/>
39
- <provenances/>
39
+ <outputs />
40
+ <provenances />
40
41
  <tags>
41
42
  <tag>Envelope.Opaque</tag>
42
43
  <tag>Calibration</tag>
@@ -64,12 +65,6 @@
64
65
  </attribute>
65
66
  </attributes>
66
67
  <files>
67
- <file>
68
- <filename>LICENSE.md</filename>
69
- <filetype>md</filetype>
70
- <usage_type>license</usage_type>
71
- <checksum>E0468DD6</checksum>
72
- </file>
73
68
  <file>
74
69
  <filename>README.md.erb</filename>
75
70
  <filetype>erb</filetype>
@@ -82,6 +77,18 @@
82
77
  <usage_type>readme</usage_type>
83
78
  <checksum>76CA84A4</checksum>
84
79
  </file>
80
+ <file>
81
+ <filename>example_model.osm</filename>
82
+ <filetype>osm</filetype>
83
+ <usage_type>test</usage_type>
84
+ <checksum>53D14E69</checksum>
85
+ </file>
86
+ <file>
87
+ <filename>LICENSE.md</filename>
88
+ <filetype>md</filetype>
89
+ <usage_type>license</usage_type>
90
+ <checksum>A21A3ED2</checksum>
91
+ </file>
85
92
  <file>
86
93
  <version>
87
94
  <software_program>OpenStudio</software_program>
@@ -91,7 +98,13 @@
91
98
  <filename>measure.rb</filename>
92
99
  <filetype>rb</filetype>
93
100
  <usage_type>script</usage_type>
94
- <checksum>31F3DB3D</checksum>
101
+ <checksum>CBD9407B</checksum>
102
+ </file>
103
+ <file>
104
+ <filename>RoofThermalPropertiesMultiplier_test.rb</filename>
105
+ <filetype>rb</filetype>
106
+ <usage_type>test</usage_type>
107
+ <checksum>B3F71A6F</checksum>
95
108
  </file>
96
109
  </files>
97
110
  </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:
@@ -2,16 +2,16 @@
2
2
 
3
3
  ###### (Automatically generated documentation)
4
4
 
5
- # TimeSeries Objective Function
5
+ #
6
6
 
7
7
  ## Description
8
- Creates Objective Function from Timeseries Data
8
+
9
9
 
10
10
  ## Modeler Description
11
- Creates Objective Function from Timeseries Data. The measure applies a Norm at each timestep between the difference of CSV metered data and SQL model data. A timeseries plot can also be created. Possible outputs are 'cvrmse', 'nmbe', 'simdata' = sum of the simulated data, 'csvdata' = sum of metered data, 'diff' = P Norm between the metered and simulated data if Norm is 1 or 2, else its just the Difference.
11
+
12
12
 
13
13
  ## Measure Type
14
- ReportingMeasure
14
+ ModelMeasure
15
15
 
16
16
  ## Taxonomy
17
17
 
@@ -19,175 +19,9 @@ ReportingMeasure
19
19
  ## Arguments
20
20
 
21
21
 
22
- ### Path to CSV file for the metered data
23
- Path to CSV file including file name.
24
- **Name:** csv_name,
25
- **Type:** String,
26
- **Units:** ,
27
- **Required:** true,
28
- **Model Dependent:** false
29
-
30
- ### CSV Time Header
31
- CSV Time Header Value. Used to determine the timestamp column in the CSV file
32
- **Name:** csv_time_header,
33
- **Type:** String,
34
- **Units:** ,
35
- **Required:** true,
36
- **Model Dependent:** false
37
-
38
- ### CSV variable name
39
- CSV variable name. Used to determine the variable column in the CSV file
40
- **Name:** csv_var,
41
- **Type:** String,
42
- **Units:** ,
43
- **Required:** true,
44
- **Model Dependent:** false
45
-
46
- ### Convert Units
47
- Convert Units in Metered Data
48
- **Name:** convert_data,
49
- **Type:** Choice,
50
- **Units:** ,
51
- **Required:** true,
52
- **Model Dependent:** false
53
-
54
- ### CSV variable display name
55
- CSV variable display name. Not yet Implemented
56
- **Name:** csv_var_dn,
57
- **Type:** String,
58
- **Units:** ,
59
- **Required:** true,
60
- **Model Dependent:** false
61
-
62
- ### Year in csv data timestamp
63
- Is the Year in the csv data timestamp => mm:dd:yy or mm:dd (true/false)
64
- **Name:** year,
65
- **Type:** Boolean,
66
- **Units:** ,
67
- **Required:** true,
68
- **Model Dependent:** false
69
-
70
- ### Seconds in csv data timestamp
71
- Is the Seconds in the csv data timestamp => hh:mm:ss or hh:mm (true/false)
72
- **Name:** seconds,
73
- **Type:** Boolean,
74
- **Units:** ,
75
- **Required:** true,
76
- **Model Dependent:** false
77
-
78
- ### SQL key value
79
- SQL key value for the SQL query to find the variable in the SQL file
80
- **Name:** key_value,
81
- **Type:** String,
82
- **Units:** ,
83
- **Required:** true,
84
- **Model Dependent:** false
85
-
86
- ### TimeSeries Name
87
- TimeSeries Name for the SQL query to find the variable in the SQL file
88
- **Name:** timeseries_name,
89
- **Type:** String,
90
- **Units:** ,
91
- **Required:** true,
92
- **Model Dependent:** false
93
-
94
- ### Reporting Frequency
95
- Reporting Frequency for SQL Query
96
- **Name:** reporting_frequency,
97
- **Type:** Choice,
98
- **Units:** ,
99
- **Required:** true,
100
- **Model Dependent:** false
101
-
102
- ### Environment Period
103
- Environment Period for SQL query
104
- **Name:** environment_period,
105
- **Type:** String,
106
- **Units:** ,
107
- **Required:** true,
108
- **Model Dependent:** false
109
-
110
- ### Norm of the difference of csv and sql
111
- Norm of the difference of csv and sql. 1 is absolute value. 2 is euclidean distance. 3 is raw difference.
112
- **Name:** norm,
113
- **Type:** Double,
114
- **Units:** ,
115
- **Required:** true,
116
- **Model Dependent:** false
117
-
118
- ### Scale factor to apply to the difference
119
- Scale factor to apply to the difference (1 is no scale)
120
- **Name:** scale,
121
- **Type:** Double,
122
- **Units:** ,
123
- **Required:** true,
124
- **Model Dependent:** false
125
-
126
- ### Find Available data in the SQL file
127
- Will RegisterInfo all the 'EnvPeriod', 'ReportingFrequencies', 'VariableNames', 'KeyValues' in the SQL file. Useful for debugging SQL issues.
128
- **Name:** find_avail,
129
- **Type:** Boolean,
130
- **Units:** ,
131
- **Required:** true,
132
- **Model Dependent:** false
133
-
134
- ### algorithm_download
135
- Make JSON data available for algorithm_download (true/false)
136
- **Name:** algorithm_download,
137
- **Type:** Boolean,
138
- **Units:** ,
139
- **Required:** true,
140
- **Model Dependent:** false
141
-
142
- ### plot_flag timeseries data
143
- Create plot of timeseries data (true/false)
144
- **Name:** plot_flag,
145
- **Type:** Boolean,
146
- **Units:** ,
147
- **Required:** true,
148
- **Model Dependent:** false
149
-
150
- ### Plot name
151
- Name to include in reporting file name.
152
- **Name:** plot_name,
153
- **Type:** String,
154
- **Units:** ,
155
- **Required:** true,
156
- **Model Dependent:** false
157
-
158
- ### verbose_messages
159
- verbose messages. Useful for debugging but MAJOR Performance Hit.
160
- **Name:** verbose_messages,
161
- **Type:** Boolean,
162
- **Units:** ,
163
- **Required:** true,
164
- **Model Dependent:** false
165
-
166
- ### warning_messages
167
- Warn on missing data.
168
- **Name:** warning_messages,
169
- **Type:** Boolean,
170
- **Units:** ,
171
- **Required:** true,
172
- **Model Dependent:** false
173
-
174
- ### add_first_zero_for_plots
175
- Add a point of zero value to the plot at the beginning of the runperiod.
176
- **Name:** add_first_zero_for_plots,
177
- **Type:** Boolean,
178
- **Units:** ,
179
- **Required:** true,
180
- **Model Dependent:** false
181
-
182
- ### add_last_zero_for_plots
183
- Add a point of zero value to the plot at the end of the runperiod.
184
- **Name:** add_last_zero_for_plots,
185
- **Type:** Boolean,
186
- **Units:** ,
187
- **Required:** true,
188
- **Model Dependent:** false
189
22
 
190
23
 
24
+ This measure does not have any user arguments
191
25
 
192
26
 
193
27
 
@@ -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:
@@ -534,14 +534,10 @@ class TimeseriesObjectiveFunction < OpenStudio::Measure::ReportingMeasure
534
534
  end
535
535
  mon = csv[row][0].split(' ')[0].split('/')[0].to_i
536
536
  day = csv[row][0].split(' ')[0].split('/')[1].to_i
537
- year = unless csv[row][0].split(' ')[0].split('/')[2].nil?
538
- csv[row][0].split(' ')[0].split('/')[2].to_i
539
- end
537
+ year = csv[row][0].split(' ')[0].split('/')[2]&.to_i
540
538
  hou = csv[row][0].split(' ')[1].split(':')[0].to_i
541
539
  min = csv[row][0].split(' ')[1].split(':')[1].to_i
542
- sec = unless csv[row][0].split(' ')[1].split(':')[2].nil?
543
- csv[row][0].split(' ')[1].split(':')[2].to_i
544
- end
540
+ sec = csv[row][0].split(' ')[1].split(':')[2]&.to_i
545
541
  if year.nil?
546
542
  dat = OpenStudio::Date.new(OpenStudio::MonthOfYear.new(cal[mon]), day)
547
543
  else