honeybee-openstudio 2.34.4 → 2.34.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21b7c8dc0db0e3178e812bb64d257b2ba15de99b0cf8e3beab63a222cef1ed48
4
- data.tar.gz: febcc1e11448e74bd06c0647e5fb1ece0466fe789c8ffe7d72a25a61b7172ffc
3
+ metadata.gz: 4c23eea2c9a30bbdb29eac4e1510577dce8a459386bff13afdab121a33aa2b2d
4
+ data.tar.gz: afeb68c0834f50351752b6ae061beafa7fb57c5140986e0d86e6a76e4e6cd0a7
5
5
  SHA512:
6
- metadata.gz: 47ff85499f08b127dd2d09b37c4782e63e07101e28239c423959c886e27554c165c35b5917c0875edd5a0fc3a409e9027c1e268cd60f9e17d49f9b0b9210eb3b
7
- data.tar.gz: f77b8acde4bd316832a8c8a5c085a7c7fdcfb38c773b941e6253b4c3423a8d737f57dfe6d5d7c6bc12d0eee97b26fe3118f04a35375cd32b08064097a251f9b4
6
+ metadata.gz: 5d606d121fceef4a970bb0c9afb59403ae774dcdcd4cf536aad148acbcbd5b61bb64bb3652b87f155c9638e1f59d92bfa8706051906b5e5e1bccaf7c1109b7d4
7
+ data.tar.gz: af6974feb3c3697a3ec0f1a3653b366eef9066bec4f94a95d1e1701995902e79a98699b10a7c87075528233773a5058040bccacd7efd439aee168527967a933b
@@ -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.34.4'
7
+ spec.version = '2.34.6'
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
 
@@ -6,6 +6,7 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
6
6
 
7
7
  # pin this dependency to avoid unicode_normalize error
8
8
  gem 'addressable', '2.8.1'
9
+ gem 'parser', '3.2.2.2'
9
10
 
10
11
  if allow_local && File.exist?('../openstudio-common-measures-gem')
11
12
  gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem'
@@ -190,10 +190,21 @@ module Honeybee
190
190
  shd_thick = shade_material.thickness
191
191
  end
192
192
  gap_thick = (original_gap.thickness - shd_thick) / 2
193
- gap_obj = $gas_gap_hash[original_gap.name.get]
194
- new_gap = gap_obj.to_openstudio(openstudio_model)
195
- new_gap.setName(original_gap.name.get + gap_thick.to_s)
196
- new_gap.setThickness(gap_thick)
193
+ gap_thick = gap_thick.round(4)
194
+ if gap_thick.to_s.end_with?('5')
195
+ gap_thick = gap_thick + 0.0005
196
+ end
197
+ gap_thick = gap_thick.round(3)
198
+ gap_id_start = original_gap.name.get + '_Split' + gap_thick.to_s
199
+ new_gap_init = openstudio_model.getMaterialByName(gap_id_start)
200
+ if new_gap_init.is_initialized
201
+ new_gap = new_gap_init.get
202
+ else
203
+ gap_obj = $gas_gap_hash[original_gap.name.get]
204
+ new_gap = gap_obj.to_openstudio(openstudio_model)
205
+ new_gap.setName(original_gap.name.get + gap_thick.to_s)
206
+ new_gap.setThickness(gap_thick)
207
+ end
197
208
  new_gap
198
209
  end
199
210
 
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.34.4
4
+ version: 2.34.6
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-04-26 00:00:00.000000000 Z
14
+ date: 2023-06-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure