honeybee-openstudio 2.28.3 → 2.28.4

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: 53c3d385d80c233e1b9f69f9391be9fd50af80d09cad0e1651b12857a7b88e3c
4
- data.tar.gz: 3fdbe6500fcd586709bea31286c761e9412c9e45458698ee337aaaadc79bbf78
3
+ metadata.gz: 1e2c8cdf1f3b9f5c3061efd38a875e2cc083f5cd61dad39ede8f8321c192b9f6
4
+ data.tar.gz: 102068a6af1a9af44de034844a868553616c218e3e47ab71acca437df202b532
5
5
  SHA512:
6
- metadata.gz: 5f7fb7d3c64ed249eabbba8609ac45e5fbb54c406ce3064aa7b4bf534c9af7a2c2b57bd61dab1ec8ae2826ee9e433d7282810ae1fd7d05a5db31ebe8133e88b3
7
- data.tar.gz: 38ba645339bb374f8b5c20e5c1cc1f77253ae4a2b8eb23c167ec5449b154faf0d391bb3fa902bcbcb099d3614efaf588fc70d56204de294fb4c2108465f7ca45
6
+ metadata.gz: c5f84e83ec98e59742e7a54a3d435f21a06149589397399b0389cfea275ed5ffbbde311fd5861e1ffd7365a67a972e37fa7d4ee73b8ab3a2967c02388ce1ef7f
7
+ data.tar.gz: 687fd381695962d34286a6e1751ebfe859141bd60c447bd8c70268046e407f09297c4c15932ed8df7e843222e558eedd722a9b470daaa8b449c784a983087b37
@@ -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.28.3'
7
+ spec.version = '2.28.4'
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
 
@@ -205,8 +205,12 @@ module Honeybee
205
205
 
206
206
  # assign any air boundary constructions to construction set
207
207
  if @hash[:air_boundary_construction]
208
- air_ref = openstudio_model.getConstructionAirBoundaryByName(
209
- @hash[:air_boundary_construction])
208
+ air_ref = openstudio_model.getConstructionAirBoundaryByName(@hash[:air_boundary_construction])
209
+ unless air_ref.empty?
210
+ air_construction = air_ref.get
211
+ os_constr_set.setInteriorPartitionConstruction(air_construction)
212
+ end
213
+ air_ref = openstudio_model.getConstructionByName(@hash[:air_boundary_construction])
210
214
  unless air_ref.empty?
211
215
  air_construction = air_ref.get
212
216
  os_constr_set.setInteriorPartitionConstruction(air_construction)
@@ -214,14 +214,18 @@ module Honeybee
214
214
  # add air mixing properties to the global list that tracks them
215
215
  if $use_simple_vent # only use air mixing objects when simple ventilation is requested
216
216
  air_hash = $air_boundary_hash[air_construction.name.to_s]
217
- if air_hash[:air_mixing_per_area]
217
+ if air_hash && air_hash[:air_mixing_per_area]
218
218
  air_mix_area = air_hash[:air_mixing_per_area]
219
219
  else
220
220
  air_default = @@schema[:components][:schemas][:AirBoundaryConstructionAbridged]
221
221
  air_mix_area = air_default[:properties][:air_mixing_per_area][:default]
222
222
  end
223
223
  flow_rate = os_surface.netArea * air_mix_area
224
- flow_sch_id = air_hash[:air_mixing_schedule]
224
+ if air_hash
225
+ flow_sch_id = air_hash[:air_mixing_schedule]
226
+ else
227
+ flow_sch_id = 'Always On'
228
+ end
225
229
  adj_zone_id = face[:boundary_condition][:boundary_condition_objects][-1]
226
230
  $air_mxing_array << [os_thermal_zone, flow_rate, flow_sch_id, adj_zone_id]
227
231
  end
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.28.3
4
+ version: 2.28.4
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-12-30 00:00:00.000000000 Z
14
+ date: 2021-12-31 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler