honeybee-openstudio 2.23.2 → 2.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70d85a158c3143c24582c3f1c29fd12c166da8ce20add49553cf9c64d6a320f2
4
- data.tar.gz: 63e8a77445232cd5f90fd3d3effdcd8816cd3982e50116ecca67e6656940589d
3
+ metadata.gz: 7e45179d0b62e6863ab40aa357fad8601ba8e66770756b652647784027b2548a
4
+ data.tar.gz: fd1e685397b0acca36ffcbb18fc9bfc5aed66236f30e37323caa76e033c78127
5
5
  SHA512:
6
- metadata.gz: bdcbacab7a8801c1a24044e9eef069bca9ffde80734fcb77c78b147492ba7ee30fdf6f3b67faf8990f8c5b11fdd5b60970e397423c933a904c8cf46f9da2ca00
7
- data.tar.gz: 7488acf2edc55f7fc2bfb5b555b1095fc1e1493eba59044969c6c09003087aa103d628c2816f06ff9e89703f680f579190e615be0422249330beacd05851fbc0
6
+ metadata.gz: 938a7678b59f42e72187d2241c20b65479b6c7ae0daaae7c51cb92b35779c5470475ff6cd631b49a37eeb34dc6fee5558319979feb5048c50a11a1a407a09cb5
7
+ data.tar.gz: e39f4f8851d6f4c9fc15683b987c0a9f8fd2ecfb44f53c2d93eda9d40f27b7f25b81797ea5b5debcafb9ddef60ad2688c37ba5dffdc9c0e68e706a494ebf36fd
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'honeybee-openstudio'
7
- spec.version = '2.23.2'
7
+ spec.version = '2.23.3'
8
8
  spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
9
9
  spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
10
10
 
@@ -88,7 +88,7 @@ module Honeybee
88
88
 
89
89
  # set up the EMS sensor for the schedule value
90
90
  state_sch = openstudio_model.getScheduleByName(@hash[:schedule])
91
- @sch_sensor_name = replace_ems_special_characters(@hash[:identifier]) + '_Sensor' + @@sensor_count.to_s
91
+ @sch_sensor_name = replace_ems_special_characters(@hash[:identifier]) + 'Sensor' + @@sensor_count.to_s
92
92
  @@sensor_count = @@sensor_count + 1
93
93
  unless state_sch.empty? # schedule not specified
94
94
  sch_var = OpenStudio::Model::OutputVariable.new('Schedule Value', openstudio_model)
@@ -107,18 +107,15 @@ module Honeybee
107
107
  @sub_faces.each do |dyn_window|
108
108
  window_act = OpenStudio::Model::EnergyManagementSystemActuator.new(
109
109
  dyn_window, 'Surface', 'Construction State')
110
- dyn_window_name = dyn_window.name
111
- unless dyn_window_name.empty?
112
- act_name = replace_ems_special_characters(dyn_window_name.get) + '_Actuator' + @@actuator_count.to_s
113
- @@actuator_count = @@actuator_count + 1
114
- window_act.setName(act_name)
115
- actuator_names << act_name
116
- end
110
+ act_name = replace_ems_special_characters(dyn_window.nameString) + 'Actuator' + @@actuator_count.to_s
111
+ @@actuator_count = @@actuator_count + 1
112
+ window_act.setName(act_name)
113
+ actuator_names << act_name
117
114
  end
118
115
 
119
116
  # create the EMS Program to accout for each state according to the control logic
120
117
  ems_program = OpenStudio::Model::EnergyManagementSystemProgram.new(openstudio_model)
121
- prog_name = replace_ems_special_characters(@hash[:identifier]) + '_StateChange' + @@program_count.to_s
118
+ prog_name = replace_ems_special_characters(@hash[:identifier]) + 'StateChange' + @@program_count.to_s
122
119
  @@program_count = @@program_count + 1
123
120
  ems_program.setName(prog_name)
124
121
 
@@ -143,12 +140,9 @@ module Honeybee
143
140
  # create the construction index variable
144
141
  constr_i = OpenStudio::Model::EnergyManagementSystemConstructionIndexVariable.new(
145
142
  openstudio_model, construction)
146
- constr_name = construction.name
147
- unless constr_name.empty?
148
- constr_i_name = replace_ems_special_characters(constr_name.get) + '_State' + @@state_count.to_s
149
- @@state_count = @@state_count + 1
150
- constr_i.setName(constr_i_name)
151
- end
143
+ constr_i_name = replace_ems_special_characters(construction.nameString) + 'State' + @@state_count.to_s
144
+ @@state_count = @@state_count + 1
145
+ constr_i.setName(constr_i_name)
152
146
 
153
147
  # loop through the actuators and set the appropriate window state
154
148
  actuator_names.each do |act_name|
@@ -85,7 +85,7 @@ module Honeybee
85
85
  in_var.setKeyValue(os_zone_name)
86
86
  end
87
87
  in_air_temp = OpenStudio::Model::EnergyManagementSystemSensor.new(openstudio_model, in_var)
88
- in_sensor_name = replace_ems_special_characters(os_zone_name) + '_Sensor' + @@sensor_count.to_s
88
+ in_sensor_name = replace_ems_special_characters(os_zone_name) + 'Sensor' + @@sensor_count.to_s
89
89
  @@sensor_count = @@sensor_count + 1
90
90
  in_air_temp.setName(in_sensor_name)
91
91
 
@@ -97,7 +97,7 @@ module Honeybee
97
97
  sch_var.setReportingFrequency('Timestep')
98
98
  sch_var.setKeyValue(@hash[:schedule])
99
99
  sch_sens = OpenStudio::Model::EnergyManagementSystemSensor.new(openstudio_model, sch_var)
100
- sch_sensor_name = replace_ems_special_characters(os_zone_name) + '_Sensor' + @@sensor_count.to_s
100
+ sch_sensor_name = replace_ems_special_characters(os_zone_name) + 'Sensor' + @@sensor_count.to_s
101
101
  @@sensor_count = @@sensor_count + 1
102
102
  sch_sens.setName(sch_sensor_name)
103
103
  end
@@ -108,14 +108,11 @@ module Honeybee
108
108
  vent_opening_surfaces.each do |vent_srf|
109
109
  window_act = OpenStudio::Model::EnergyManagementSystemActuator.new(
110
110
  vent_srf, 'AirFlow Network Window/Door Opening', 'Venting Opening Factor')
111
- vent_srf_name = vent_srf.name
112
- unless vent_srf_name.empty?
113
- act_name = replace_ems_special_characters(vent_srf_name.get) + \
114
- '_OpenFactor' + @@actuator_count.to_s
115
- @@actuator_count = @@actuator_count + 1
116
- window_act.setName(act_name)
117
- actuator_names << act_name
118
- end
111
+ act_name = replace_ems_special_characters(vent_srf.nameString) + \
112
+ 'OpenFactor' + @@actuator_count.to_s
113
+ @@actuator_count = @@actuator_count + 1
114
+ window_act.setName(act_name)
115
+ actuator_names << act_name
119
116
  end
120
117
 
121
118
  # create the first line of the EMS Program to open each window according to the control logic
@@ -158,7 +155,7 @@ module Honeybee
158
155
 
159
156
  # initialize the program and add the complete logic
160
157
  ems_program = OpenStudio::Model::EnergyManagementSystemProgram.new(openstudio_model)
161
- prog_name = replace_ems_special_characters(os_zone_name) + '_WindowOpening' + @@program_count.to_s
158
+ prog_name = replace_ems_special_characters(os_zone_name) + 'WindowOpening' + @@program_count.to_s
162
159
  @@program_count = @@program_count + 1
163
160
  ems_program.setName(prog_name)
164
161
  ems_program.addLine(complete_logic)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybee-openstudio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.2
4
+ version: 2.23.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanushree Charan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2021-09-15 00:00:00.000000000 Z
14
+ date: 2021-09-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler