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 +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/files/urbanopt_Gemfile +3 -0
- data/lib/to_openstudio/construction/windowshade.rb +15 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdd9201849bf1da5bf6d581ac131eba749fcca29a4482a85db4f635903ecda34
|
4
|
+
data.tar.gz: ffe318028f24cf4cdc04ce14402d87b5ee7bcbf7bd6807e7a5d3c166f2e35e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0dfb6907626671966642d1482b2300c75ec673527e2ca5a3fccfe7636b2626642c8449f0af02de35050bdd6431ca5327b1a9ba2208526a3e7e444fb868a9bd7
|
7
|
+
data.tar.gz: 256430d6e0261df7fc68a4071c0ac9d23efc3ff146b5bbab437d893e32b0bef7b76f520846ec2e51efecb7ce95fef7626d8ef3d4286b842472b34999b3170dc3
|
data/honeybee-openstudio.gemspec
CHANGED
@@ -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.
|
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
|
|
data/lib/files/urbanopt_Gemfile
CHANGED
@@ -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
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
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
|
+
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-
|
14
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|