honeybee-openstudio 2.34.3 → 2.34.5

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: d4c9a3f73cadaedf8f1e13e0b20b1392952936a24c1b89d4ffd7532275fcb603
4
- data.tar.gz: db9b5fbbecb023ff4465d5d88ab3fda0ab36dd1e6d5835bdb3f072a7ef9d7f64
3
+ metadata.gz: fdd9201849bf1da5bf6d581ac131eba749fcca29a4482a85db4f635903ecda34
4
+ data.tar.gz: ffe318028f24cf4cdc04ce14402d87b5ee7bcbf7bd6807e7a5d3c166f2e35e40
5
5
  SHA512:
6
- metadata.gz: 135307618dc282c797521be37b65b7494eead11ed66e11409fe0459afbeb7e9cc1a6d07bfb6b11ae73410eb3fc9639c7d386905fff0a8adf0ec775d46a18f874
7
- data.tar.gz: 2e54d8e090017dd82d63388ed8a44f03c5439631f23bb56d9af68c13ad2ede5f4b8c6dfd1c2d9ab44c7329fff8708bb6593fb399d8768a690bcb00d3af3c0115
6
+ metadata.gz: d0dfb6907626671966642d1482b2300c75ec673527e2ca5a3fccfe7636b2626642c8449f0af02de35050bdd6431ca5327b1a9ba2208526a3e7e444fb868a9bd7
7
+ data.tar.gz: 256430d6e0261df7fc68a4071c0ac9d23efc3ff146b5bbab437d893e32b0bef7b76f520846ec2e51efecb7ce95fef7626d8ef3d4286b842472b34999b3170dc3
@@ -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.3'
7
+ spec.version = '2.34.5'
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
 
@@ -4,6 +4,9 @@ ruby '~> 2.7.0'
4
4
 
5
5
  allow_local = ENV['FAVOR_LOCAL_GEMS']
6
6
 
7
+ # pin this dependency to avoid unicode_normalize error
8
+ gem 'addressable', '2.8.1'
9
+
7
10
  if allow_local && File.exist?('../openstudio-common-measures-gem')
8
11
  gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem'
9
12
  elsif allow_local
@@ -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.3
4
+ version: 2.34.5
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-19 00:00:00.000000000 Z
14
+ date: 2023-05-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure