openstudio-calibration 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +1 -1
  4. data/Jenkinsfile +1 -1
  5. data/Rakefile +3 -0
  6. data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +3 -3
  7. data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +3 -3
  8. data/lib/measures/AddMonthlyUtilityData/measure.xml +8 -8
  9. data/lib/measures/CalibrationReports/measure.rb +1 -3
  10. data/lib/measures/CalibrationReports/measure.xml +4 -4
  11. data/lib/measures/CalibrationReportsEnhanced/measure.rb +21 -22
  12. data/lib/measures/CalibrationReportsEnhanced/measure.xml +4 -4
  13. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +12 -12
  14. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +5 -5
  15. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +12 -12
  16. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +5 -5
  17. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +21 -23
  18. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +5 -5
  19. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +21 -23
  20. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +5 -5
  21. data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +33 -43
  22. data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +5 -5
  23. data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +33 -43
  24. data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +5 -5
  25. data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +8 -8
  26. data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +5 -5
  27. data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +8 -8
  28. data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +5 -5
  29. data/lib/measures/CoilHeatingGasMultiplier/measure.rb +8 -8
  30. data/lib/measures/CoilHeatingGasMultiplier/measure.xml +5 -5
  31. data/lib/measures/CoilHeatingGasPercentChange/measure.rb +8 -8
  32. data/lib/measures/CoilHeatingGasPercentChange/measure.xml +5 -5
  33. data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +13 -15
  34. data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +5 -5
  35. data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +13 -15
  36. data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +5 -5
  37. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +4 -4
  38. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +3 -3
  39. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +8 -5
  40. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +9 -9
  41. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +8 -5
  42. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +9 -9
  43. data/lib/measures/FansMultiplier/measure.rb +8 -8
  44. data/lib/measures/FansMultiplier/measure.xml +5 -5
  45. data/lib/measures/FansPercentChange/measure.rb +8 -8
  46. data/lib/measures/FansPercentChange/measure.xml +5 -5
  47. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +2 -2
  48. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +7 -7
  49. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +2 -2
  50. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +7 -7
  51. data/lib/measures/HardSizeHvac/measure.rb +2 -4
  52. data/lib/measures/HardSizeHvac/measure.xml +4 -4
  53. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +7 -9
  54. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +3 -3
  55. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +7 -9
  56. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +3 -3
  57. data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +8 -5
  58. data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +9 -9
  59. data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +8 -5
  60. data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +9 -9
  61. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +26 -23
  62. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +10 -15
  63. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +3 -0
  64. data/lib/measures/TimeseriesPlot/measure.rb +1 -3
  65. data/lib/measures/TimeseriesPlot/measure.xml +13 -13
  66. data/lib/measures/TimeseriesPlot/resources/report.html.erb +3 -0
  67. data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +17 -22
  68. data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +5 -5
  69. data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +17 -22
  70. data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +5 -5
  71. data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +13 -11
  72. data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +29 -29
  73. data/lib/measures/shift_hours_of_operation/measure.rb +31 -29
  74. data/lib/measures/shift_hours_of_operation/measure.xml +51 -37
  75. data/lib/openstudio/calibration/version.rb +1 -1
  76. data/openstudio-calibration.gemspec +13 -6
  77. metadata +69 -13
@@ -10,14 +10,8 @@
10
10
 
11
11
  require 'openstudio-standards'
12
12
 
13
- # load OpenStudio measure libraries from openstudio-extension gem
14
- require 'openstudio-extension'
15
- require 'openstudio/extension/core/os_lib_helper_methods'
16
-
17
13
  # start the measure
18
14
  class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
19
- # resource file modules
20
- include OsLib_HelperMethods
21
15
 
22
16
  # human readable name
23
17
  def name
@@ -45,14 +39,18 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
45
39
  hoo_start_weekday.setDescription('Use decimal hours so an 1 hour and 15 minute shift would be 1.25. Positive value moves the hour of operation later')
46
40
  hoo_start_weekday.setDefaultValue(0.0)
47
41
  hoo_start_weekday.setUnits('Hours')
42
+ hoo_start_weekday.setMinValue(-24.0)
43
+ hoo_start_weekday.setMaxValue(24.0)
48
44
  args << hoo_start_weekday
49
45
 
50
46
  # delta hoo_dur for weekday
51
47
  hoo_dur_weekday = OpenStudio::Measure::OSArgument.makeDoubleArgument('hoo_dur_weekday', true)
52
48
  hoo_dur_weekday.setDisplayName('Extend the weekday of hours of operation.')
53
49
  hoo_dur_weekday.setDescription('Use decimal hours so an 1 hour and 15 minute would be 1.25. Positive value makes the hour of operation longer.')
54
- hoo_dur_weekday .setDefaultValue(0.0)
50
+ hoo_dur_weekday.setDefaultValue(0.0)
55
51
  hoo_dur_weekday.setUnits('Hours')
52
+ hoo_dur_weekday.setMinValue(-24.0)
53
+ hoo_dur_weekday.setMaxValue(24.0)
56
54
  args << hoo_dur_weekday
57
55
 
58
56
  # TODO: - could include every day of the week
@@ -63,6 +61,8 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
63
61
  hoo_start_saturday.setDescription('Use decimal hours so an 1 hour and 15 minute shift would be 1.25. Positive value moves the hour of operation later')
64
62
  hoo_start_saturday.setDefaultValue(0.0)
65
63
  hoo_start_saturday.setUnits('Hours')
64
+ hoo_start_saturday.setMinValue(-24.0)
65
+ hoo_start_saturday.setMaxValue(24.0)
66
66
  args << hoo_start_saturday
67
67
 
68
68
  # delta hoo_dur for saturday
@@ -71,6 +71,8 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
71
71
  hoo_dur_saturday.setDescription('Use decimal hours so an 1 hour and 15 minute would be 1.25. Positive value makes the hour of operation longer.')
72
72
  hoo_dur_saturday.setDefaultValue(0.0)
73
73
  hoo_dur_saturday.setUnits('Hours')
74
+ hoo_dur_saturday.setMinValue(-24.0)
75
+ hoo_dur_saturday.setMaxValue(24.0)
74
76
  args << hoo_dur_saturday
75
77
 
76
78
  # delta hoo_start for sundays
@@ -79,6 +81,8 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
79
81
  hoo_start_sunday.setDescription('Use decimal hours so an 1 hour and 15 minute shift would be 1.25. Positive value moves the hour of operation later')
80
82
  hoo_start_sunday.setDefaultValue(0.0)
81
83
  hoo_start_sunday.setUnits('Hours')
84
+ hoo_start_sunday.setMinValue(-24.0)
85
+ hoo_start_sunday.setMaxValue(24.0)
82
86
  args << hoo_start_sunday
83
87
 
84
88
  # delta hoo_dur for sunday
@@ -87,6 +91,8 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
87
91
  hoo_dur_sunday.setDescription('Use decimal hours so an 1 hour and 15 minute would be 1.25. Positive value makes the hour of operation longer.')
88
92
  hoo_dur_sunday.setDefaultValue(0.0)
89
93
  hoo_dur_sunday.setUnits('Hours')
94
+ hoo_dur_sunday.setMinValue(-24.0)
95
+ hoo_dur_sunday.setMaxValue(24.0)
90
96
  args << hoo_dur_sunday
91
97
 
92
98
  # TODO: - could include start and end days to have delta or absolute values applied to. (maybe decimal between 1.0 and 13.0 month where 3.50 would be March 15th)
@@ -111,6 +117,8 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
111
117
  fraction_of_daily_occ_range.setDescription('This determine what fraction of occupancy be considered operating conditions. This fraction is normalized to expanded to range seen over the full year and does not necessary equal fraction of design occupancy. This value should be between 0 and 1.0 and is only used if dynamically generated parametric schedules are used.')
112
118
  fraction_of_daily_occ_range.setDefaultValue(0.25)
113
119
  fraction_of_daily_occ_range.setUnits('Hours')
120
+ fraction_of_daily_occ_range.setMinValue(0.0)
121
+ fraction_of_daily_occ_range.setMaxValue(1.0)
114
122
  args << fraction_of_daily_occ_range
115
123
 
116
124
  # argument to choose hour of operation variable method
@@ -150,7 +158,7 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
150
158
  runner.registerWarning("Hours of Operation Schedule is not set for #{space.name}.")
151
159
  next
152
160
  end
153
- hours_of_operation_hash = standard.space_hours_of_operation(space)
161
+ hours_of_operation_hash = OpenstudioStandards::Space.space_hours_of_operation(space)
154
162
  hours_of_operation_hash.each do |hoo_key, val|
155
163
  if val[:hoo_hours] == 0.0
156
164
  hoo_summary_hash[:zero_hoo] << val[:hoo_hours]
@@ -234,7 +242,7 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
234
242
  # use this to link to hoo from hours_of_operation_hash
235
243
  counter_of_orig_index = hours_of_operation_hash.size - 2 # this is not impacted by cloning that may have happened above
236
244
 
237
- hoo_sch.scheduleRules.reverse.each do |rule|
245
+ hoo_sch.scheduleRules.reverse_each do |rule|
238
246
  # inspect days of the week
239
247
  actual_days_of_week_for_profile = []
240
248
  if rule.applyMonday then actual_days_of_week_for_profile << 'mon' end
@@ -390,22 +398,15 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
390
398
  super(model, runner, user_arguments)
391
399
 
392
400
  # assign the user inputs to variables
393
- args = OsLib_HelperMethods.createRunVariables(runner, model, user_arguments, arguments(model))
401
+ args = runner.getArgumentValues(arguments(model), user_arguments)
402
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
394
403
  if !args then return false end
395
404
 
396
- # check expected values of double arguments
397
- fraction = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments, 'min' => 0.0, 'max' => 1.0, 'min_eq_bool' => true, 'max_eq_bool' => true, 'arg_array' => ['fraction_of_daily_occ_range'])
398
-
399
- neg_24__24 = ['hoo_start_weekday',
400
- 'hoo_dur_weekday',
401
- 'hoo_start_saturday',
402
- 'hoo_dur_saturday',
403
- 'hoo_start_sunday',
404
- 'hoo_dur_sunday']
405
- time_hours = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments, 'min' => -24.0, 'max' => 24.0, 'min_eq_bool' => true, 'max_eq_bool' => true, 'arg_array' => neg_24__24)
405
+ # open channel to log messages
406
+ reset_log
406
407
 
407
- # setup log messages that will come from standards
408
- OsLib_HelperMethods.setup_log_msgs(runner, true) # bool is debug
408
+ # Turn debugging output on/off
409
+ debug = false
409
410
 
410
411
  # load standards
411
412
  standard = Standard.build('90.1-2004') # selected template doesn't matter
@@ -414,19 +415,19 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
414
415
  # infer hours of operation for the building
415
416
  # @param fraction_of_daily_occ_range [Double] fraction above/below daily min range required to start and end hours of operation
416
417
  occ_fraction = args['fraction_of_daily_occ_range']
417
- standard.model_infer_hours_of_operation_building(model, fraction_of_daily_occ_range: occ_fraction, gen_occ_profile: true)
418
+ OpenstudioStandards::Schedules.model_infer_hours_of_operation_building(model, fraction_of_daily_occ_range: occ_fraction, gen_occ_profile: true)
418
419
  runner.registerInfo('Inferring initial hours of operation for the building and generating parametric profile formulas.')
419
420
 
420
421
  # report back hours of operation
421
422
  initial_hoo_range = []
422
- hours_of_operation_hash_test = standard.space_hours_of_operation(model.getSpaces.first)
423
+ hours_of_operation_hash_test = OpenstudioStandards::Space.space_hours_of_operation(model.getSpaces.first)
423
424
  hours_of_operation_hash_test.each do |hoo_key, val|
424
425
  initial_hoo_range << val[:hoo_hours]
425
426
  runner.registerInfo("For Profile Index #{hoo_key} hours of operation run for #{val[:hoo_hours]} hours, from #{val[:hoo_start]} to #{val[:hoo_end]} and is used for #{val[:days_used].size} days of the year.")
426
427
  end
427
428
 
428
429
  # model_setup_parametric_schedules
429
- standard.model_setup_parametric_schedules(model, gather_data_only: false, hoo_var_method: args['hoo_var_method'])
430
+ OpenstudioStandards::Schedules.model_setup_parametric_schedules(model, gather_data_only: false, hoo_var_method: args['hoo_var_method'])
430
431
  end
431
432
 
432
433
  # report initial condition of model
@@ -446,7 +447,7 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
446
447
  runner.registerWarning("Hours of Operation Schedule is not set for #{space.name}.")
447
448
  next
448
449
  end
449
- hours_of_operation_hash = standard.space_hours_of_operation(space)
450
+ hours_of_operation_hash = OpenstudioStandards::Space.space_hours_of_operation(space)
450
451
  used_hoo_sch_sets[hours_of_operation.get] = hours_of_operation_hash
451
452
  end
452
453
 
@@ -468,7 +469,7 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
468
469
  # TODO: - need to address this error when manipulating schedules
469
470
  # [openstudio.standards.ScheduleRuleset] <1> Pre-interpolated processed hash for Large Office Bldg Equip Default Schedule has one or more out of order conflicts: [[3.5, 0.8], [4.5, 0.6], [5.0, 0.6], [7.0, 0.5], [9.0, 0.4], [6.0, 0.4], [10.0, 0.9], [16.5, 0.9], [17.5, 0.8], [18.5, 0.9], [21.5, 0.9]]. Method will stop because Error on Out of Order was set to true.
470
471
  # model_build_parametric_schedules
471
- parametric_schedules = standard.model_apply_parametric_schedules(model, ramp_frequency: nil, infer_hoo_for_non_assigned_objects: true, error_on_out_of_order: true)
472
+ parametric_schedules = OpenstudioStandards::Schedules.model_apply_parametric_schedules(model, ramp_frequency: nil, infer_hoo_for_non_assigned_objects: true, error_on_out_of_order: false)
472
473
  runner.registerInfo("Created #{parametric_schedules.size} parametric schedules.")
473
474
 
474
475
  # report final condition of model
@@ -479,8 +480,9 @@ class ShiftHoursOfOperation < OpenStudio::Measure::ModelMeasure
479
480
  runner.registerFinalCondition("Across the building the hours of operation range from #{hoo_summary_hash[:final_hoo_dur_range].min} hours to #{hoo_summary_hash[:final_hoo_dur_range].max} hours. Start of hours of operation range from #{hoo_summary_hash[:final_hoo_start_range].min} to #{hoo_summary_hash[:final_hoo_start_range].max}.")
480
481
  end
481
482
 
482
- # get log messages (if debug in setup is true this will fail for error)
483
- OsLib_HelperMethods.log_msgs
483
+ # gather log
484
+ log_messages_to_runner(runner, debug)
485
+ reset_log
484
486
 
485
487
  # TODO: - adding hours of operation to a schedule that doesn't have them to start with, like a sunday, can be problematic
486
488
  # todo - start of day may not be reliable and there may not be formula inputs to show what occupied behavior is
@@ -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>shift_hours_of_operation</name>
5
5
  <uid>e8ae02a4-4be2-45c3-b85b-2a1d94662653</uid>
6
- <version_id>1300914a-ae91-41df-9b9a-da9b2adde3ad</version_id>
7
- <version_modified>20230602T154656Z</version_modified>
6
+ <version_id>b960e0ec-2792-4cb7-aadc-e29fa84034bb</version_id>
7
+ <version_modified>2024-07-11T19:58:17Z</version_modified>
8
8
  <xml_checksum>4098406A</xml_checksum>
9
9
  <class_name>ShiftHoursOfOperation</class_name>
10
10
  <display_name>Shift Hours of Operation</display_name>
@@ -20,6 +20,8 @@
20
20
  <required>true</required>
21
21
  <model_dependent>false</model_dependent>
22
22
  <default_value>0</default_value>
23
+ <min_value>-24.000000</min_value>
24
+ <max_value>24.000000</max_value>
23
25
  </argument>
24
26
  <argument>
25
27
  <name>hoo_dur_weekday</name>
@@ -30,6 +32,8 @@
30
32
  <required>true</required>
31
33
  <model_dependent>false</model_dependent>
32
34
  <default_value>0</default_value>
35
+ <min_value>-24.000000</min_value>
36
+ <max_value>24.000000</max_value>
33
37
  </argument>
34
38
  <argument>
35
39
  <name>hoo_start_saturday</name>
@@ -40,6 +44,8 @@
40
44
  <required>true</required>
41
45
  <model_dependent>false</model_dependent>
42
46
  <default_value>0</default_value>
47
+ <min_value>-24.000000</min_value>
48
+ <max_value>24.000000</max_value>
43
49
  </argument>
44
50
  <argument>
45
51
  <name>hoo_dur_saturday</name>
@@ -50,6 +56,8 @@
50
56
  <required>true</required>
51
57
  <model_dependent>false</model_dependent>
52
58
  <default_value>0</default_value>
59
+ <min_value>-24.000000</min_value>
60
+ <max_value>24.000000</max_value>
53
61
  </argument>
54
62
  <argument>
55
63
  <name>hoo_start_sunday</name>
@@ -60,6 +68,8 @@
60
68
  <required>true</required>
61
69
  <model_dependent>false</model_dependent>
62
70
  <default_value>0</default_value>
71
+ <min_value>-24.000000</min_value>
72
+ <max_value>24.000000</max_value>
63
73
  </argument>
64
74
  <argument>
65
75
  <name>hoo_dur_sunday</name>
@@ -70,6 +80,8 @@
70
80
  <required>true</required>
71
81
  <model_dependent>false</model_dependent>
72
82
  <default_value>0</default_value>
83
+ <min_value>-24.000000</min_value>
84
+ <max_value>24.000000</max_value>
73
85
  </argument>
74
86
  <argument>
75
87
  <name>delta_values</name>
@@ -118,6 +130,8 @@
118
130
  <required>true</required>
119
131
  <model_dependent>false</model_dependent>
120
132
  <default_value>0.25</default_value>
133
+ <min_value>0.000000</min_value>
134
+ <max_value>1.000000</max_value>
121
135
  </argument>
122
136
  <argument>
123
137
  <name>hoo_var_method</name>
@@ -212,10 +226,16 @@
212
226
  </attributes>
213
227
  <files>
214
228
  <file>
215
- <filename>example_model.osm</filename>
216
- <filetype>osm</filetype>
217
- <usage_type>test</usage_type>
218
- <checksum>BE467EF8</checksum>
229
+ <filename>LICENSE.md</filename>
230
+ <filetype>md</filetype>
231
+ <usage_type>license</usage_type>
232
+ <checksum>BFFB1AA6</checksum>
233
+ </file>
234
+ <file>
235
+ <filename>README.md</filename>
236
+ <filetype>md</filetype>
237
+ <usage_type>readme</usage_type>
238
+ <checksum>46CEB194</checksum>
219
239
  </file>
220
240
  <file>
221
241
  <filename>README.md.erb</filename>
@@ -224,10 +244,21 @@
224
244
  <checksum>232D0477</checksum>
225
245
  </file>
226
246
  <file>
227
- <filename>target_hoo_from_model.osm</filename>
228
- <filetype>osm</filetype>
229
- <usage_type>test</usage_type>
230
- <checksum>3F74E693</checksum>
247
+ <filename>.gitkeep</filename>
248
+ <filetype>gitkeep</filetype>
249
+ <usage_type>doc</usage_type>
250
+ <checksum>00000000</checksum>
251
+ </file>
252
+ <file>
253
+ <version>
254
+ <software_program>OpenStudio</software_program>
255
+ <identifier>3.1.0</identifier>
256
+ <min_compatible>3.8.0</min_compatible>
257
+ </version>
258
+ <filename>measure.rb</filename>
259
+ <filetype>rb</filetype>
260
+ <usage_type>script</usage_type>
261
+ <checksum>564F5547</checksum>
231
262
  </file>
232
263
  <file>
233
264
  <filename>SimpleModel.osm</filename>
@@ -242,39 +273,22 @@
242
273
  <checksum>03619D54</checksum>
243
274
  </file>
244
275
  <file>
245
- <filename>.gitkeep</filename>
246
- <filetype>gitkeep</filetype>
247
- <usage_type>doc</usage_type>
248
- <checksum>00000000</checksum>
249
- </file>
250
- <file>
251
- <filename>README.md</filename>
252
- <filetype>md</filetype>
253
- <usage_type>readme</usage_type>
254
- <checksum>46CEB194</checksum>
255
- </file>
256
- <file>
257
- <filename>LICENSE.md</filename>
258
- <filetype>md</filetype>
259
- <usage_type>license</usage_type>
260
- <checksum>BFFB1AA6</checksum>
276
+ <filename>example_model.osm</filename>
277
+ <filetype>osm</filetype>
278
+ <usage_type>test</usage_type>
279
+ <checksum>BE467EF8</checksum>
261
280
  </file>
262
281
  <file>
263
282
  <filename>shift_hours_of_operation_test.rb</filename>
264
283
  <filetype>rb</filetype>
265
284
  <usage_type>test</usage_type>
266
- <checksum>7820BD97</checksum>
285
+ <checksum>59E5AA36</checksum>
267
286
  </file>
268
287
  <file>
269
- <version>
270
- <software_program>OpenStudio</software_program>
271
- <identifier>3.1.0</identifier>
272
- <min_compatible>3.1.0</min_compatible>
273
- </version>
274
- <filename>measure.rb</filename>
275
- <filetype>rb</filetype>
276
- <usage_type>script</usage_type>
277
- <checksum>8C482469</checksum>
288
+ <filename>target_hoo_from_model.osm</filename>
289
+ <filetype>osm</filetype>
290
+ <usage_type>test</usage_type>
291
+ <checksum>3F74E693</checksum>
278
292
  </file>
279
293
  </files>
280
294
  </measure>
@@ -5,6 +5,6 @@
5
5
 
6
6
  module OpenStudio
7
7
  module Calibration
8
- VERSION = '0.9.0'.freeze
8
+ VERSION = '0.10.0'.freeze
9
9
  end
10
10
  end
@@ -23,16 +23,23 @@ Gem::Specification.new do |spec|
23
23
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
24
  f.match(%r{^(test|lib.measures.*tests|spec|features)/})
25
25
  end
26
- spec.bindir = 'exe'
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.required_ruby_version = '~> 2.7.0'
30
+ spec.required_ruby_version = '~> 3.2.2'
31
31
 
32
- spec.add_dependency 'bundler', '~> 2.1'
33
- spec.add_dependency 'openstudio-extension', '~> 0.7.0'
34
- spec.add_dependency 'openstudio-standards', '~> 0.5.0'
32
+ spec.add_dependency 'bundler', '~> 2.4.10'
33
+ spec.add_dependency 'openstudio-extension', '~> 0.8.0'
34
+ spec.add_dependency 'openstudio-standards', '0.6.1'
35
+
36
+ # if we need the following dependencies pinned,
37
+ # let's set them in extension-gem for next release
38
+ spec.add_dependency 'multipart-post', '2.4.0'
39
+ spec.add_dependency 'regexp_parser', '2.9.0'
40
+ spec.add_dependency 'addressable', '2.8.1'
35
41
 
36
42
  spec.add_development_dependency 'rake', '~> 13.0'
37
43
  spec.add_development_dependency 'rspec', '~> 3.9'
44
+ spec.add_development_dependency 'octokit', '4.18.0' # for change logs
38
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-calibration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Ball
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-15 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
@@ -17,42 +17,84 @@ dependencies:
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.7.0
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.7.0
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.5.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.5.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: openstudio base gem for creating generic extensions with encapsulated
85
141
  data and measures.
86
142
  email:
@@ -294,7 +350,7 @@ licenses: []
294
350
  metadata:
295
351
  bug_tracker_uri: https://github.com/NREL/openstudio-calibration-gem/issues
296
352
  changelog_uri: https://github.com/NREL/openstudio-calibration-gem/blob/develop/CHANGELOG.md
297
- source_code_uri: https://github.com/NREL/openstudio-calibration-gem/tree/v0.9.0
353
+ source_code_uri: https://github.com/NREL/openstudio-calibration-gem/tree/v0.10.0
298
354
  post_install_message:
299
355
  rdoc_options: []
300
356
  require_paths:
@@ -303,14 +359,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
359
  requirements:
304
360
  - - "~>"
305
361
  - !ruby/object:Gem::Version
306
- version: 2.7.0
362
+ version: 3.2.2
307
363
  required_rubygems_version: !ruby/object:Gem::Requirement
308
364
  requirements:
309
365
  - - ">="
310
366
  - !ruby/object:Gem::Version
311
367
  version: '0'
312
368
  requirements: []
313
- rubygems_version: 3.1.4
369
+ rubygems_version: 3.4.10
314
370
  signing_key:
315
371
  specification_version: 4
316
372
  summary: openstudio base gem for creating generic extensions with encapsulated data