honeybee-openstudio 2.35.1 → 2.35.2

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: f2147c20b722a4999ef4621fc8df7bfdbd6e2048ebeb4bb5fb3b3e308fc1fbd5
4
- data.tar.gz: f12ee5ebd489fc2d76e51d03b5d4b5eaf21fa0064b165f4e9cdfe5da46746ee8
3
+ metadata.gz: eadf72cc6184d0f30705481227c69a6bb35a17485856a641a841c797f720bd46
4
+ data.tar.gz: cbff4e6067b9be01c1df2b545c4a181f863f9a51a5c5cc4f2c6bd5a301558e19
5
5
  SHA512:
6
- metadata.gz: d8447c9153732de6310620300af6a13cde9062f06a83c6ef9e3b211054b2b80d8e4e0837a6a739044a265fb43a27a560b1299cbd57924faad26f04f66aa36981
7
- data.tar.gz: 14323bdd6d2a4cf1f31ea92047ba097ee288dd2b90bc3e39aed0bf64180beab8af27b6143ad152f38301a7d634221e61063dd1875ff94e08274a5284f15b9122
6
+ metadata.gz: 4e91999590b5b8b2f15bca7cc073beafd4d310507064b2eea7e883069fcfb761301d3cf22147ef9cdb1fe11cb6db967d06417d1c82534d7b821ef69cc3dc8300
7
+ data.tar.gz: 6c3aaad16d195b28a4434365d2d94dacd6e639f4baba7ff016b53c16bb0d31105157b59c9417ee5c0d2f9b25f5a735fad265751e771a82e131e9a089482323f4
@@ -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.35.1'
7
+ spec.version = '2.35.2'
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
 
@@ -162,61 +162,61 @@ module Honeybee
162
162
 
163
163
  return result
164
164
  end
165
- end # Door
166
165
 
167
- def to_openstudio_shade(openstudio_model, shading_surface_group)
168
- # get the vertices from the door
169
- if @hash[:geometry][:vertices].nil?
170
- hb_verts = @hash[:geometry][:boundary]
171
- else
172
- hb_verts = @hash[:geometry][:vertices]
173
- end
166
+ def to_openstudio_shade(openstudio_model, shading_surface_group)
167
+ # get the vertices from the door
168
+ if @hash[:geometry][:vertices].nil?
169
+ hb_verts = @hash[:geometry][:boundary]
170
+ else
171
+ hb_verts = @hash[:geometry][:vertices]
172
+ end
174
173
 
175
- # create the openstudio shading surface
176
- os_vertices = OpenStudio::Point3dVector.new
177
- hb_verts.each do |vertex|
178
- os_vertices << OpenStudio::Point3d.new(vertex[0], vertex[1], vertex[2])
179
- end
174
+ # create the openstudio shading surface
175
+ os_vertices = OpenStudio::Point3dVector.new
176
+ hb_verts.each do |vertex|
177
+ os_vertices << OpenStudio::Point3d.new(vertex[0], vertex[1], vertex[2])
178
+ end
180
179
 
181
- os_shading_surface = OpenStudio::Model::ShadingSurface.new(os_vertices, openstudio_model)
182
- os_shading_surface.setName(@hash[:identifier])
183
- unless @hash[:display_name].nil?
184
- os_shading_surface.setDisplayName(@hash[:display_name])
185
- end
180
+ os_shading_surface = OpenStudio::Model::ShadingSurface.new(os_vertices, openstudio_model)
181
+ os_shading_surface.setName(@hash[:identifier])
182
+ unless @hash[:display_name].nil?
183
+ os_shading_surface.setDisplayName(@hash[:display_name])
184
+ end
186
185
 
187
- # get the approriate construction id
188
- construction_id = nil
189
- if @hash[:properties].key?(:energy) && @hash[:properties][:energy][:construction]
190
- construction_id = @hash[:properties][:energy][:construction]
191
- elsif @hash[:is_glass] == true
192
- construction_id = 'Generic Double Pane'
193
- else
194
- construction_id = 'Generic Exterior Door'
195
- end
186
+ # get the approriate construction id
187
+ construction_id = nil
188
+ if @hash[:properties].key?(:energy) && @hash[:properties][:energy][:construction]
189
+ construction_id = @hash[:properties][:energy][:construction]
190
+ elsif @hash[:is_glass] == true
191
+ construction_id = 'Generic Double Pane'
192
+ else
193
+ construction_id = 'Generic Exterior Door'
194
+ end
196
195
 
197
- # assign the construction
198
- unless construction_id.nil?
199
- construction = openstudio_model.getConstructionByName(construction_id)
200
- unless construction.empty?
201
- os_construction = construction.get
202
- os_shading_surface.setConstruction(os_construction)
196
+ # assign the construction
197
+ unless construction_id.nil?
198
+ construction = openstudio_model.getConstructionByName(construction_id)
199
+ unless construction.empty?
200
+ os_construction = construction.get
201
+ os_shading_surface.setConstruction(os_construction)
202
+ end
203
203
  end
204
- end
205
204
 
206
- # add a transmittance schedule if a value is found
207
- if @hash[:transmit]
208
- schedule_identifier = 'Constant ' + @hash[:transmit] + ' Transmittance'
209
- schedule = openstudio_model.getScheduleByName(schedule_identifier)
210
- unless schedule.empty?
211
- os_schedule = schedule.get
212
- os_shading_surface.setTransmittanceSchedule(os_schedule)
205
+ # add a transmittance schedule if a value is found
206
+ if @hash[:transmit]
207
+ schedule_identifier = 'Constant ' + @hash[:transmit] + ' Transmittance'
208
+ schedule = openstudio_model.getScheduleByName(schedule_identifier)
209
+ unless schedule.empty?
210
+ os_schedule = schedule.get
211
+ os_shading_surface.setTransmittanceSchedule(os_schedule)
212
+ end
213
213
  end
214
- end
215
214
 
216
- # add the shade to the group
217
- os_shading_surface.setShadingSurfaceGroup(shading_surface_group)
215
+ # add the shade to the group
216
+ os_shading_surface.setShadingSurfaceGroup(shading_surface_group)
218
217
 
219
- os_shading_surface
220
- end
218
+ os_shading_surface
219
+ end
221
220
 
221
+ end # Door
222
222
  end # Honeybee
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.35.1
4
+ version: 2.35.2
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: 2023-09-19 00:00:00.000000000 Z
14
+ date: 2023-11-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure