openstudio-common-measures 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_with_openstudio.yml +2 -2
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +10 -5
  5. data/Jenkinsfile +1 -1
  6. data/README.md +2 -0
  7. data/lib/measures/.rubocop.yml +6 -0
  8. data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
  9. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
  10. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
  11. data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
  12. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
  13. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
  14. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
  15. data/lib/measures/AddExteriorLights/measure.xml +19 -19
  16. data/lib/measures/AddMeter/measure.xml +15 -15
  17. data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
  18. data/lib/measures/AddOutputVariable/measure.xml +15 -15
  19. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
  20. data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
  21. data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
  22. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
  23. data/lib/measures/ChangeBuildingLocation/README.md +1 -1
  24. data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
  25. data/lib/measures/ChangeBuildingLocation/measure.xml +89 -89
  26. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
  27. data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
  28. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
  29. data/lib/measures/MeterFlodPlot/measure.xml +35 -35
  30. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
  31. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
  32. data/lib/measures/PredictedMeanVote/measure.xml +23 -23
  33. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
  34. data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
  35. data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
  36. data/lib/measures/ReplaceModel/README.md +1 -3
  37. data/lib/measures/ReplaceModel/measure.xml +32 -14
  38. data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
  39. data/lib/measures/ReportModelChanges/measure.xml +23 -23
  40. data/lib/measures/RunPeriod/measure.xml +14 -14
  41. data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
  42. data/lib/measures/ServerDirectoryCleanup/measure.xml +30 -30
  43. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
  44. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
  45. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
  46. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
  47. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
  48. data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
  49. data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
  50. data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
  51. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
  52. data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
  53. data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
  54. data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
  55. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
  56. data/lib/measures/VentilationQAQC/measure.xml +31 -31
  57. data/lib/measures/XcelEDAReportingandQAQC/measure.xml +46 -46
  58. data/lib/measures/XcelEDAReportingandQAQC/resources/CreateResults.rb +2 -0
  59. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
  60. data/lib/measures/ZoneReport/measure.xml +35 -35
  61. data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
  62. data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
  63. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
  64. data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
  65. data/lib/measures/add_ev_load/measure.xml +35 -35
  66. data/lib/measures/add_rooftop_pv/measure.rb +5 -7
  67. data/lib/measures/add_rooftop_pv/measure.xml +25 -25
  68. data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
  69. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
  70. data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
  71. data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
  72. data/lib/measures/create_csv_output/measure.xml +28 -28
  73. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
  74. data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
  75. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
  76. data/lib/measures/example_report/measure.rb +2 -5
  77. data/lib/measures/example_report/measure.xml +41 -41
  78. data/lib/measures/example_report/resources/report.html.erb +1 -0
  79. data/lib/measures/gem_env_report/measure.xml +32 -32
  80. data/lib/measures/generic_qaqc/measure.rb +8 -15
  81. data/lib/measures/generic_qaqc/measure.xml +175 -175
  82. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
  83. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
  84. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +14 -5
  85. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
  86. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
  87. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
  88. data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
  89. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
  90. data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
  91. data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
  92. data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
  93. data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
  94. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
  95. data/lib/measures/inject_idf_objects/measure.xml +31 -31
  96. data/lib/measures/openstudio_results/measure.rb +2 -6
  97. data/lib/measures/openstudio_results/measure.xml +348 -360
  98. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +8 -8
  99. data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
  100. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
  101. data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
  102. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
  103. data/lib/measures/set_run_period/measure.xml +19 -19
  104. data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +22 -22
  105. data/lib/measures/shadow_calculation/measure.xml +18 -18
  106. data/lib/measures/tariff_selection_block/measure.rb +2 -5
  107. data/lib/measures/tariff_selection_block/measure.xml +25 -25
  108. data/lib/measures/tariff_selection_flat/measure.rb +3 -5
  109. data/lib/measures/tariff_selection_flat/measure.xml +25 -25
  110. data/lib/measures/tariff_selection_generic/measure.rb +2 -5
  111. data/lib/measures/tariff_selection_generic/measure.xml +39 -39
  112. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
  113. data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
  114. data/lib/measures/view_data/measure.xml +41 -41
  115. data/lib/measures/view_model/measure.xml +35 -35
  116. data/lib/openstudio/common_measures/version.rb +1 -1
  117. data/openstudio-common-measures.gemspec +11 -4
  118. metadata +72 -15
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>view_model</name>
5
5
  <uid>f4669f10-fda5-489d-8e1c-7ca3c2d40378</uid>
6
- <version_id>268f85e6-f86a-480c-b7dd-c75920b3c922</version_id>
7
- <version_modified>20221115T223605Z</version_modified>
6
+ <version_id>4eb18071-9b24-4e3d-8f78-ae506e8b8a61</version_id>
7
+ <version_modified>2024-07-11T14:32:08Z</version_modified>
8
8
  <xml_checksum>1E1F8B97</xml_checksum>
9
9
  <class_name>ViewModel</class_name>
10
10
  <display_name>ViewModel</display_name>
@@ -30,22 +30,10 @@
30
30
  </attributes>
31
31
  <files>
32
32
  <file>
33
- <filename>RotationTest.osm</filename>
34
- <filetype>osm</filetype>
35
- <usage_type>test</usage_type>
36
- <checksum>B313B958</checksum>
37
- </file>
38
- <file>
39
- <filename>ExampleModel.osm</filename>
40
- <filetype>osm</filetype>
41
- <usage_type>test</usage_type>
42
- <checksum>10636DB9</checksum>
43
- </file>
44
- <file>
45
- <filename>SimpleModel.osm</filename>
46
- <filetype>osm</filetype>
47
- <usage_type>test</usage_type>
48
- <checksum>AC094EF8</checksum>
33
+ <filename>LICENSE.md</filename>
34
+ <filetype>md</filetype>
35
+ <usage_type>license</usage_type>
36
+ <checksum>BFFB1AA6</checksum>
49
37
  </file>
50
38
  <file>
51
39
  <filename>README.md</filename>
@@ -59,12 +47,6 @@
59
47
  <usage_type>readmeerb</usage_type>
60
48
  <checksum>703C9964</checksum>
61
49
  </file>
62
- <file>
63
- <filename>ViewModel_Test.rb</filename>
64
- <filetype>rb</filetype>
65
- <usage_type>test</usage_type>
66
- <checksum>08D44F2F</checksum>
67
- </file>
68
50
  <file>
69
51
  <version>
70
52
  <software_program>OpenStudio</software_program>
@@ -74,25 +56,43 @@
74
56
  <filename>measure.rb</filename>
75
57
  <filetype>rb</filetype>
76
58
  <usage_type>script</usage_type>
77
- <checksum>D03B01B8</checksum>
59
+ <checksum>343BE407</checksum>
78
60
  </file>
79
61
  <file>
80
- <filename>LICENSE.md</filename>
81
- <filetype>md</filetype>
82
- <usage_type>license</usage_type>
83
- <checksum>64FFEBDE</checksum>
62
+ <filename>report.html.in</filename>
63
+ <filetype>in</filetype>
64
+ <usage_type>resource</usage_type>
65
+ <checksum>7192FF7E</checksum>
84
66
  </file>
85
67
  <file>
86
68
  <filename>va3c.rb</filename>
87
69
  <filetype>rb</filetype>
88
70
  <usage_type>resource</usage_type>
89
- <checksum>31AAA47F</checksum>
71
+ <checksum>7B8C67AE</checksum>
90
72
  </file>
91
73
  <file>
92
- <filename>report.html.in</filename>
93
- <filetype>in</filetype>
94
- <usage_type>resource</usage_type>
95
- <checksum>7192FF7E</checksum>
74
+ <filename>ExampleModel.osm</filename>
75
+ <filetype>osm</filetype>
76
+ <usage_type>test</usage_type>
77
+ <checksum>10636DB9</checksum>
78
+ </file>
79
+ <file>
80
+ <filename>RotationTest.osm</filename>
81
+ <filetype>osm</filetype>
82
+ <usage_type>test</usage_type>
83
+ <checksum>B313B958</checksum>
84
+ </file>
85
+ <file>
86
+ <filename>SimpleModel.osm</filename>
87
+ <filetype>osm</filetype>
88
+ <usage_type>test</usage_type>
89
+ <checksum>AC094EF8</checksum>
90
+ </file>
91
+ <file>
92
+ <filename>ViewModel_Test.rb</filename>
93
+ <filetype>rb</filetype>
94
+ <usage_type>test</usage_type>
95
+ <checksum>EC1EC2CE</checksum>
96
96
  </file>
97
97
  </files>
98
98
  </measure>
@@ -5,6 +5,6 @@
5
5
 
6
6
  module OpenStudio
7
7
  module CommonMeasures
8
- VERSION = '0.8.0'.freeze
8
+ VERSION = '0.10.0'.freeze
9
9
  end
10
10
  end
@@ -26,12 +26,19 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.required_ruby_version = '~> 2.7.0'
29
+ spec.required_ruby_version = '~> 3.2.2'
30
30
 
31
- spec.add_dependency 'bundler', '>= 2.1'
32
- spec.add_dependency 'openstudio-extension', '~> 0.6.1'
33
- spec.add_dependency 'openstudio-standards', '~> 0.4.0'
31
+ spec.add_dependency 'bundler', '~> 2.4.10'
32
+ spec.add_dependency 'openstudio-extension', '~> 0.8.0'
33
+ spec.add_dependency 'openstudio-standards', '0.6.1'
34
+
35
+ # if we need the following dependencies pinned,
36
+ # let's set them in extension-gem for next release
37
+ spec.add_dependency 'multipart-post', '2.4.0'
38
+ spec.add_dependency 'regexp_parser', '2.9.0'
39
+ spec.add_dependency 'addressable', '2.8.1'
34
40
 
35
41
  spec.add_development_dependency 'rake', '~> 13.0'
36
42
  spec.add_development_dependency 'rspec', '~> 3.9'
43
+ spec.add_development_dependency 'octokit', '4.18.0' # for change logs
37
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-common-measures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Goldwasser
@@ -9,50 +9,92 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-06-21 00:00:00.000000000 Z
12
+ date: 2024-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.1'
20
+ version: 2.4.10
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.1'
27
+ version: 2.4.10
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: openstudio-extension
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.6.1
34
+ version: 0.8.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.6.1
41
+ version: 0.8.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: openstudio-standards
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 0.4.0
48
+ version: 0.6.1
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.6.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: multipart-post
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '='
61
+ - !ruby/object:Gem::Version
62
+ version: 2.4.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 2.4.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: regexp_parser
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '='
75
+ - !ruby/object:Gem::Version
76
+ version: 2.9.0
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '='
82
+ - !ruby/object:Gem::Version
83
+ version: 2.9.0
84
+ - !ruby/object:Gem::Dependency
85
+ name: addressable
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '='
89
+ - !ruby/object:Gem::Version
90
+ version: 2.8.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '='
54
96
  - !ruby/object:Gem::Version
55
- version: 0.4.0
97
+ version: 2.8.1
56
98
  - !ruby/object:Gem::Dependency
57
99
  name: rake
58
100
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +123,20 @@ dependencies:
81
123
  - - "~>"
82
124
  - !ruby/object:Gem::Version
83
125
  version: '3.9'
126
+ - !ruby/object:Gem::Dependency
127
+ name: octokit
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '='
131
+ - !ruby/object:Gem::Version
132
+ version: 4.18.0
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '='
138
+ - !ruby/object:Gem::Version
139
+ version: 4.18.0
84
140
  description: Common library and measures for OpenStudio
85
141
  email:
86
142
  - david.goldwasser@nrel.gov
@@ -105,6 +161,7 @@ files:
105
161
  - doc_templates/copyright_js.txt
106
162
  - doc_templates/copyright_ruby.txt
107
163
  - lib/files/.gitkeep
164
+ - lib/measures/.rubocop.yml
108
165
  - lib/measures/AddCostPerAreaToConstruction/LICENSE.md
109
166
  - lib/measures/AddCostPerAreaToConstruction/README.md
110
167
  - lib/measures/AddCostPerAreaToConstruction/README.md.erb
@@ -782,7 +839,7 @@ licenses: []
782
839
  metadata:
783
840
  bug_tracker_uri: https://github.com/NREL/openstudio-common-measures-gem/issues
784
841
  changelog_uri: https://github.com/NREL/openstudio-common-measures-gem/blob/develop/CHANGELOG.md
785
- source_code_uri: https://github.com/NREL/openstudio-common-measures-gem/tree/v0.8.0
842
+ source_code_uri: https://github.com/NREL/openstudio-common-measures-gem/tree/v0.10.0
786
843
  post_install_message:
787
844
  rdoc_options: []
788
845
  require_paths:
@@ -791,14 +848,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
791
848
  requirements:
792
849
  - - "~>"
793
850
  - !ruby/object:Gem::Version
794
- version: 2.7.0
851
+ version: 3.2.2
795
852
  required_rubygems_version: !ruby/object:Gem::Requirement
796
853
  requirements:
797
854
  - - ">="
798
855
  - !ruby/object:Gem::Version
799
856
  version: '0'
800
857
  requirements: []
801
- rubygems_version: 3.1.4
858
+ rubygems_version: 3.4.10
802
859
  signing_key:
803
860
  specification_version: 4
804
861
  summary: Common library and measures for OpenStudio