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 +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/files/urbanopt_Gemfile +1 -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: 4c23eea2c9a30bbdb29eac4e1510577dce8a459386bff13afdab121a33aa2b2d
|
4
|
+
data.tar.gz: afeb68c0834f50351752b6ae061beafa7fb57c5140986e0d86e6a76e4e6cd0a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d606d121fceef4a970bb0c9afb59403ae774dcdcd4cf536aad148acbcbd5b61bb64bb3652b87f155c9638e1f59d92bfa8706051906b5e5e1bccaf7c1109b7d4
|
7
|
+
data.tar.gz: af6974feb3c3697a3ec0f1a3653b366eef9066bec4f94a95d1e1701995902e79a98699b10a7c87075528233773a5058040bccacd7efd439aee168527967a933b
|
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.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
|
|
data/lib/files/urbanopt_Gemfile
CHANGED
@@ -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
|
-
|
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.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-
|
14
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|