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
@@ -66,7 +66,7 @@ module OsLib_QAQC
66
66
  # skip if all spaces using this space type are plenums
67
67
  all_spaces_plenums = true
68
68
  space_type.spaces.each do |space|
69
- if !std.space_plenum?(space)
69
+ if !OpenstudioStandards::Space.space_plenum?(space)
70
70
  all_spaces_plenums = false
71
71
  next
72
72
  end
@@ -90,7 +90,7 @@ module OsLib_QAQC
90
90
  check_elems << OpenStudio::Attribute.new('flag', "Didn't find schedule named #{data['lighting_schedule']} in standards json.")
91
91
  else
92
92
  # loop through and test individual load instances
93
- target_hrs = std.schedule_ruleset_annual_equivalent_full_load_hrs(schedule_target.to_ScheduleRuleset.get)
93
+ target_hrs = OpenstudioStandards::Schedules.schedule_ruleset_get_equivalent_full_load_hours(schedule_target.to_ScheduleRuleset.get)
94
94
  space_type.lights.each do |load_inst|
95
95
  inst_sch_check = generate_load_insc_sch_check_attribute(target_hrs, load_inst, space_type, check_elems, min_pass, max_pass, target_standard)
96
96
  if inst_sch_check then check_elems << inst_sch_check end
@@ -107,7 +107,7 @@ module OsLib_QAQC
107
107
  check_elems << OpenStudio::Attribute.new('flag', "Didn't find schedule named #{data['electric_equipment_schedule']} in standards json.")
108
108
  else
109
109
  # loop through and test individual load instances
110
- target_hrs = std.schedule_ruleset_annual_equivalent_full_load_hrs(schedule_target.to_ScheduleRuleset.get)
110
+ target_hrs = OpenstudioStandards::Schedules.schedule_ruleset_get_equivalent_full_load_hours(schedule_target.to_ScheduleRuleset.get)
111
111
 
112
112
  space_type.electricEquipment.each do |load_inst|
113
113
  inst_sch_check = generate_load_insc_sch_check_attribute(target_hrs, load_inst, space_type, check_elems, min_pass, max_pass, target_standard)
@@ -125,7 +125,7 @@ module OsLib_QAQC
125
125
  check_elems << OpenStudio::Attribute.new('flag', "Didn't find schedule named #{data['gas_equipment_schedule']} in standards json.")
126
126
  else
127
127
  # loop through and test individual load instances
128
- target_hrs = std.schedule_ruleset_annual_equivalent_full_load_hrs(schedule_target.to_ScheduleRuleset.get)
128
+ target_hrs = OpenstudioStandards::Schedules.schedule_ruleset_get_equivalent_full_load_hours(schedule_target.to_ScheduleRuleset.get)
129
129
  space_type.gasEquipment.each do |load_inst|
130
130
  inst_sch_check = generate_load_insc_sch_check_attribute(target_hrs, load_inst, space_type, check_elems, min_pass, max_pass, target_standard)
131
131
  if inst_sch_check then check_elems << inst_sch_check end
@@ -141,7 +141,7 @@ module OsLib_QAQC
141
141
  check_elems << OpenStudio::Attribute.new('flag', "Didn't find schedule named #{data['occupancy_schedule']} in standards json.")
142
142
  else
143
143
  # loop through and test individual load instances
144
- target_hrs = std.schedule_ruleset_annual_equivalent_full_load_hrs(schedule_target.to_ScheduleRuleset.get)
144
+ target_hrs = OpenstudioStandards::Schedules.schedule_ruleset_get_equivalent_full_load_hours(schedule_target.to_ScheduleRuleset.get)
145
145
  space_type.people.each do |load_inst|
146
146
  inst_sch_check = generate_load_insc_sch_check_attribute(target_hrs, load_inst, space_type, check_elems, min_pass, max_pass, target_standard)
147
147
  if inst_sch_check then check_elems << inst_sch_check end
@@ -182,7 +182,7 @@ module OsLib_QAQC
182
182
 
183
183
  # warn if there are spaces in model that don't use space type unless they appear to be plenums
184
184
  @model.getSpaces.each do |space|
185
- next if std.space_plenum?(space)
185
+ next if OpenstudioStandards::Space.space_plenum?(space)
186
186
  if !space.spaceType.is_initialized
187
187
  check_elems << OpenStudio::Attribute.new('flag', "#{space.name} doesn't have a space type assigned, can't validate schedules.")
188
188
  end
@@ -234,7 +234,7 @@ module OsLib_QAQC
234
234
 
235
235
  # get annual equiv for model schedule
236
236
  if schedule_inst.to_ScheduleRuleset.is_initialized
237
- inst_hrs = std.schedule_ruleset_annual_equivalent_full_load_hrs(schedule_inst.to_ScheduleRuleset.get)
237
+ inst_hrs = OpenstudioStandards::Schedules.schedule_ruleset_get_equivalent_full_load_hours(schedule_inst.to_ScheduleRuleset.get)
238
238
  elsif schedule_inst.to_ScheduleConstant.is_initialized
239
239
  inst_hrs = std.schedule_constant_annual_equivalent_full_load_hrs(schedule_inst.to_ScheduleConstant.get)
240
240
  else
@@ -60,17 +60,20 @@ module OsLib_QAQC
60
60
  if use_old_gem_code
61
61
  schedule_values = clg_sch.to_ScheduleRuleset.get.annual_min_max_value
62
62
  else
63
- schedule_values = std.schedule_ruleset_annual_min_max_value(clg_sch.to_ScheduleRuleset.get)
63
+ schedule_values = OpenstudioStandards::Schedules.schedule_get_min_max(clg_sch)
64
64
  end
65
65
  elsif clg_sch.to_ScheduleConstant.is_initialized
66
66
  if use_old_gem_code
67
67
  schedule_values = clg_sch.to_ScheduleConstant.get.annual_min_max_value
68
68
  else
69
- schedule_values = std.schedule_constant_annual_min_max_value(clg_sch.to_ScheduleConstant.get)
69
+ schedule_values = OpenstudioStandards::Schedules.schedule_get_min_max(clg_sch)
70
70
  end
71
71
  end
72
72
 
73
73
  unless schedule_values.nil?
74
+ puts "hello1"
75
+ puts schedule_values
76
+ puts "hello2"
74
77
  model_clg_min = schedule_values['min']
75
78
  end
76
79
  end
@@ -6,14 +6,8 @@
6
6
  # see the URL below for information on how to write OpenStudio measures
7
7
  # http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  # start the measure
14
10
  class GetSiteFromBuildingComponentLibrary < OpenStudio::Measure::ModelMeasure
15
- # resource file modules
16
- include OsLib_HelperMethods
17
11
 
18
12
  # human readable name
19
13
  def name
@@ -56,14 +50,16 @@ class GetSiteFromBuildingComponentLibrary < OpenStudio::Measure::ModelMeasure
56
50
  super(model, runner, user_arguments)
57
51
 
58
52
  # assign the user inputs to variables
59
- args = OsLib_HelperMethods.createRunVariables(runner, model, user_arguments, arguments(model))
53
+ args = runner.getArgumentValues(arguments(model), user_arguments)
54
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
60
55
  if !args then return false end
61
56
 
62
57
  # lookup and replace argument values from upstream measures
63
58
  if args['use_upstream_args'] == true
64
59
  args.each do |arg, value|
65
60
  next if arg == 'use_upstream_args' # this argument should not be changed
66
- value_from_osw = OsLib_HelperMethods.check_upstream_measure_for_arg(runner, arg)
61
+ value_from_osw = runner.getPastStepValuesForName(arg)
62
+ value_from_osw = value_from_osw.collect{ |k, v| Hash[:measure_name => k, :value => v] }.first if !value_from_osw.empty?
67
63
  if !value_from_osw.empty?
68
64
  runner.registerInfo("Replacing argument named #{arg} from current measure with a value of #{value_from_osw[:value]} from #{value_from_osw[:measure_name]}.")
69
65
  new_val = value_from_osw[:value]
@@ -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>get_site_from_building_component_library</name>
5
5
  <uid>a6dff045-6f62-4288-a3f0-a5549f4c292a</uid>
6
- <version_id>6cfdd1c0-eae5-4eba-b422-fde5d082ee4c</version_id>
7
- <version_modified>20221115T223607Z</version_modified>
6
+ <version_id>aa3db6e6-f8bf-492f-9fcd-b2c8750c4352</version_id>
7
+ <version_modified>2024-07-11T14:32:10Z</version_modified>
8
8
  <xml_checksum>99E7000D</xml_checksum>
9
9
  <class_name>GetSiteFromBuildingComponentLibrary</class_name>
10
10
  <display_name>Get Site from Building Component Library</display_name>
@@ -94,10 +94,16 @@
94
94
  </attributes>
95
95
  <files>
96
96
  <file>
97
- <filename>example_model.osm</filename>
98
- <filetype>osm</filetype>
99
- <usage_type>test</usage_type>
100
- <checksum>C4F35230</checksum>
97
+ <filename>LICENSE.md</filename>
98
+ <filetype>md</filetype>
99
+ <usage_type>license</usage_type>
100
+ <checksum>BFFB1AA6</checksum>
101
+ </file>
102
+ <file>
103
+ <filename>README.md</filename>
104
+ <filetype>md</filetype>
105
+ <usage_type>readme</usage_type>
106
+ <checksum>FAAFE9B7</checksum>
101
107
  </file>
102
108
  <file>
103
109
  <filename>README.md.erb</filename>
@@ -106,39 +112,33 @@
106
112
  <checksum>703C9964</checksum>
107
113
  </file>
108
114
  <file>
109
- <filename>README.md</filename>
110
- <filetype>md</filetype>
111
- <usage_type>readme</usage_type>
112
- <checksum>FAAFE9B7</checksum>
115
+ <version>
116
+ <software_program>OpenStudio</software_program>
117
+ <identifier>2.0.0</identifier>
118
+ <min_compatible>3.8.0</min_compatible>
119
+ </version>
120
+ <filename>measure.rb</filename>
121
+ <filetype>rb</filetype>
122
+ <usage_type>script</usage_type>
123
+ <checksum>4D81272B</checksum>
113
124
  </file>
114
125
  <file>
115
126
  <filename>bcl_api_test.rb</filename>
116
127
  <filetype>rb</filetype>
117
128
  <usage_type>test</usage_type>
118
- <checksum>9EE93012</checksum>
129
+ <checksum>1CD9B490</checksum>
119
130
  </file>
120
131
  <file>
121
- <filename>LICENSE.md</filename>
122
- <filetype>md</filetype>
123
- <usage_type>license</usage_type>
124
- <checksum>64FFEBDE</checksum>
132
+ <filename>example_model.osm</filename>
133
+ <filetype>osm</filetype>
134
+ <usage_type>test</usage_type>
135
+ <checksum>C4F35230</checksum>
125
136
  </file>
126
137
  <file>
127
138
  <filename>get_site_from_building_component_library_test.rb</filename>
128
139
  <filetype>rb</filetype>
129
140
  <usage_type>test</usage_type>
130
- <checksum>F5BB0628</checksum>
131
- </file>
132
- <file>
133
- <version>
134
- <software_program>OpenStudio</software_program>
135
- <identifier>2.0.0</identifier>
136
- <min_compatible>2.8.0</min_compatible>
137
- </version>
138
- <filename>measure.rb</filename>
139
- <filetype>rb</filetype>
140
- <usage_type>script</usage_type>
141
- <checksum>3FBDCCAF</checksum>
141
+ <checksum>AE95604F</checksum>
142
142
  </file>
143
143
  </files>
144
144
  </measure>
@@ -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>hvac_psychrometric_chart</name>
5
5
  <uid>97213780-0727-4462-8ec0-9a6c3e475cd6</uid>
6
- <version_id>dad1d895-c678-4bb4-879d-3eae5fded9d3</version_id>
7
- <version_modified>20221115T224202Z</version_modified>
6
+ <version_id>b6eca7ed-6047-4a27-9190-773f8e670e5c</version_id>
7
+ <version_modified>2024-07-11T14:32:02Z</version_modified>
8
8
  <xml_checksum>F657B621</xml_checksum>
9
9
  <class_name>HVACPsychrometricChart</class_name>
10
10
  <display_name>HVAC Psychrometric Chart</display_name>
@@ -44,22 +44,10 @@
44
44
  </attributes>
45
45
  <files>
46
46
  <file>
47
- <filename>model_test.osm</filename>
48
- <filetype>osm</filetype>
49
- <usage_type>test</usage_type>
50
- <checksum>34E3E58A</checksum>
51
- </file>
52
- <file>
53
- <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
54
- <filetype>epw</filetype>
55
- <usage_type>test</usage_type>
56
- <checksum>BDF687C1</checksum>
57
- </file>
58
- <file>
59
- <filename>README.md.erb</filename>
60
- <filetype>erb</filetype>
61
- <usage_type>readmeerb</usage_type>
62
- <checksum>703C9964</checksum>
47
+ <filename>LICENSE.md</filename>
48
+ <filetype>md</filetype>
49
+ <usage_type>license</usage_type>
50
+ <checksum>BFFB1AA6</checksum>
63
51
  </file>
64
52
  <file>
65
53
  <filename>README.md</filename>
@@ -68,10 +56,10 @@
68
56
  <checksum>3DE900D7</checksum>
69
57
  </file>
70
58
  <file>
71
- <filename>LICENSE.md</filename>
72
- <filetype>md</filetype>
73
- <usage_type>license</usage_type>
74
- <checksum>64FFEBDE</checksum>
59
+ <filename>README.md.erb</filename>
60
+ <filetype>erb</filetype>
61
+ <usage_type>readmeerb</usage_type>
62
+ <checksum>703C9964</checksum>
75
63
  </file>
76
64
  <file>
77
65
  <version>
@@ -82,19 +70,31 @@
82
70
  <filename>measure.rb</filename>
83
71
  <filetype>rb</filetype>
84
72
  <usage_type>script</usage_type>
85
- <checksum>7C4C392E</checksum>
73
+ <checksum>E80959ED</checksum>
74
+ </file>
75
+ <file>
76
+ <filename>report.html.erb</filename>
77
+ <filetype>erb</filetype>
78
+ <usage_type>resource</usage_type>
79
+ <checksum>FB03153C</checksum>
80
+ </file>
81
+ <file>
82
+ <filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
83
+ <filetype>epw</filetype>
84
+ <usage_type>test</usage_type>
85
+ <checksum>BDF687C1</checksum>
86
86
  </file>
87
87
  <file>
88
88
  <filename>hvac_psychrometric_chart_test.rb</filename>
89
89
  <filetype>rb</filetype>
90
90
  <usage_type>test</usage_type>
91
- <checksum>CE7469B8</checksum>
91
+ <checksum>8046D052</checksum>
92
92
  </file>
93
93
  <file>
94
- <filename>report.html.erb</filename>
95
- <filetype>erb</filetype>
96
- <usage_type>resource</usage_type>
97
- <checksum>3DE4D1D8</checksum>
94
+ <filename>model_test.osm</filename>
95
+ <filetype>osm</filetype>
96
+ <usage_type>test</usage_type>
97
+ <checksum>34E3E58A</checksum>
98
98
  </file>
99
99
  </files>
100
100
  </measure>
@@ -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>inject_idf_objects</name>
5
5
  <uid>f567dfbc-d280-4d68-b061-019ab2630cd0</uid>
6
- <version_id>d5c3cd4a-e663-4bb7-bb6c-e0f0cddbead9</version_id>
7
- <version_modified>20221115T223603Z</version_modified>
6
+ <version_id>fad67fa1-ef05-4eea-bb44-8552e20c1a4c</version_id>
7
+ <version_modified>2024-07-11T14:32:07Z</version_modified>
8
8
  <xml_checksum>A8BAB05F</xml_checksum>
9
9
  <class_name>InjectIDFObjects</class_name>
10
10
  <display_name> Inject IDF Objects</display_name>
@@ -61,28 +61,10 @@ This measure works for when you just need to add new IDF objects. If you need to
61
61
  </attributes>
62
62
  <files>
63
63
  <file>
64
- <filename>EnvelopeAndLoadTestModel_01.osm</filename>
65
- <filetype>osm</filetype>
66
- <usage_type>test</usage_type>
67
- <checksum>E11F67BD</checksum>
68
- </file>
69
- <file>
70
- <filename>Example B - BlockEnergyCharge.idf</filename>
71
- <filetype>idf</filetype>
72
- <usage_type>test</usage_type>
73
- <checksum>F90DD242</checksum>
74
- </file>
75
- <file>
76
- <filename>model_test.osw</filename>
77
- <filetype>osw</filetype>
78
- <usage_type>test</usage_type>
79
- <checksum>F5FABCCF</checksum>
80
- </file>
81
- <file>
82
- <filename>README.md.erb</filename>
83
- <filetype>erb</filetype>
84
- <usage_type>readmeerb</usage_type>
85
- <checksum>703C9964</checksum>
64
+ <filename>LICENSE.md</filename>
65
+ <filetype>md</filetype>
66
+ <usage_type>license</usage_type>
67
+ <checksum>BFFB1AA6</checksum>
86
68
  </file>
87
69
  <file>
88
70
  <filename>README.md</filename>
@@ -91,10 +73,10 @@ This measure works for when you just need to add new IDF objects. If you need to
91
73
  <checksum>3D0882F2</checksum>
92
74
  </file>
93
75
  <file>
94
- <filename>LICENSE.md</filename>
95
- <filetype>md</filetype>
96
- <usage_type>license</usage_type>
97
- <checksum>64FFEBDE</checksum>
76
+ <filename>README.md.erb</filename>
77
+ <filetype>erb</filetype>
78
+ <usage_type>readmeerb</usage_type>
79
+ <checksum>703C9964</checksum>
98
80
  </file>
99
81
  <file>
100
82
  <version>
@@ -105,13 +87,31 @@ This measure works for when you just need to add new IDF objects. If you need to
105
87
  <filename>measure.rb</filename>
106
88
  <filetype>rb</filetype>
107
89
  <usage_type>script</usage_type>
108
- <checksum>7BDE3C9B</checksum>
90
+ <checksum>AC4140F5</checksum>
91
+ </file>
92
+ <file>
93
+ <filename>EnvelopeAndLoadTestModel_01.osm</filename>
94
+ <filetype>osm</filetype>
95
+ <usage_type>test</usage_type>
96
+ <checksum>E11F67BD</checksum>
97
+ </file>
98
+ <file>
99
+ <filename>Example B - BlockEnergyCharge.idf</filename>
100
+ <filetype>idf</filetype>
101
+ <usage_type>test</usage_type>
102
+ <checksum>F90DD242</checksum>
109
103
  </file>
110
104
  <file>
111
105
  <filename>measure_Test.rb</filename>
112
106
  <filetype>rb</filetype>
113
107
  <usage_type>test</usage_type>
114
- <checksum>B0776CD6</checksum>
108
+ <checksum>88C69467</checksum>
109
+ </file>
110
+ <file>
111
+ <filename>model_test.osw</filename>
112
+ <filetype>osw</filetype>
113
+ <usage_type>test</usage_type>
114
+ <checksum>F5FABCCF</checksum>
115
115
  </file>
116
116
  </files>
117
117
  </measure>
@@ -6,11 +6,6 @@
6
6
  require 'erb'
7
7
  require 'json'
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_schedules'
12
- require 'openstudio/extension/core/os_lib_helper_methods'
13
-
14
9
  # load local resources
15
10
  require "#{File.dirname(__FILE__)}/resources/os_lib_reporting"
16
11
  require_relative 'resources/Siz.Model'
@@ -213,7 +208,8 @@ class OpenStudioResults < OpenStudio::Measure::ReportingMeasure
213
208
  web_asset_path = setup[:web_asset_path]
214
209
 
215
210
  # assign the user inputs to variables
216
- args = OsLib_HelperMethods.createRunVariables(runner, model, user_arguments, arguments)
211
+ args = runner.getArgumentValues(arguments, user_arguments)
212
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
217
213
  unless args
218
214
  return false
219
215
  end