honeybee-openstudio 2.18.0 → 2.18.1
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/from_openstudio/geometry/aperture.rb +4 -1
- data/lib/from_openstudio/geometry/door.rb +6 -1
- data/lib/from_openstudio/geometry/face.rb +4 -1
- data/lib/from_openstudio/geometry/shade.rb +2 -2
- data/lib/from_openstudio/model.rb +22 -14
- 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: 360f33826c9c5ac0030753392e25e8c49b9be52b68ec03da684fd20503c3e1f8
|
4
|
+
data.tar.gz: b8d57eab2e20d6dcb19220dcca07091ffc768bd1686fa6f156a013fa5470b863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d194113026357c05405ee505e7f4b39711fd6cf45536195aa515fff2a7cc6dbfb22592fac28fb6c359c5e1458573697723377348be1bf90034fbf7df7262cc
|
7
|
+
data.tar.gz: 95fcfdd2b144d870cebbe2e88bf2a3a139b9ae93c9fa2c0906eee93870e4d280472639ecaf19fcbd8188d09af5866e62f9f8c9f34e84717439b0fcce95a70d5a
|
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.18.
|
7
|
+
spec.version = '2.18.1'
|
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
|
|
@@ -71,7 +71,10 @@ module Honeybee
|
|
71
71
|
|
72
72
|
construction = sub_surface.construction
|
73
73
|
if !construction.empty?
|
74
|
-
|
74
|
+
constr_id = construction.get.nameString
|
75
|
+
unless $window_constructions[constr_id].nil?
|
76
|
+
hash[:construction] = constr_id
|
77
|
+
end
|
75
78
|
end
|
76
79
|
|
77
80
|
hash
|
@@ -71,7 +71,12 @@ module Honeybee
|
|
71
71
|
|
72
72
|
construction = sub_surface.construction
|
73
73
|
if !construction.empty?
|
74
|
-
|
74
|
+
constr_id = construction.get.nameString
|
75
|
+
if hash[:is_glass] && !$window_constructions[constr_id].nil?
|
76
|
+
hash[:construction] = constr_id
|
77
|
+
elsif !hash[:is_glass] && !$opaque_constructions[constr_id].nil?
|
78
|
+
hash[:construction] = constr_id
|
79
|
+
end
|
75
80
|
end
|
76
81
|
|
77
82
|
hash
|
@@ -73,7 +73,10 @@ module Honeybee
|
|
73
73
|
|
74
74
|
construction = surface.construction
|
75
75
|
if !construction.empty?
|
76
|
-
|
76
|
+
constr_id = construction.get.nameString
|
77
|
+
unless $opaque_constructions[constr_id].nil?
|
78
|
+
hash[:construction] = constr_id
|
79
|
+
end
|
77
80
|
end
|
78
81
|
|
79
82
|
hash
|
@@ -63,10 +63,10 @@ module Honeybee
|
|
63
63
|
if !construction.empty?
|
64
64
|
const_name = construction.get.nameString
|
65
65
|
hash[:construction] = const_name
|
66
|
-
unless $
|
66
|
+
unless $shade_constructions.has_key?(const_name)
|
67
67
|
const_obj = construction.get
|
68
68
|
const = const_obj.to_LayeredConstruction.get
|
69
|
-
$
|
69
|
+
$shade_constructions[const_name] = const
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
@@ -61,8 +61,10 @@ module Honeybee
|
|
61
61
|
hash[:tolerance] = 0.01
|
62
62
|
hash[:angle_tolerance] = 1.0
|
63
63
|
|
64
|
-
#
|
65
|
-
$
|
64
|
+
# Hashes for all constructions in the model
|
65
|
+
$opaque_constructions = {}
|
66
|
+
$window_constructions = {}
|
67
|
+
$shade_constructions = {}
|
66
68
|
hash[:properties] = properties_from_model(openstudio_model)
|
67
69
|
|
68
70
|
rooms = rooms_from_model(openstudio_model)
|
@@ -71,8 +73,8 @@ module Honeybee
|
|
71
73
|
orphaned_shades = orphaned_shades_from_model(openstudio_model)
|
72
74
|
hash[:orphaned_shades] = orphaned_shades if !orphaned_shades.empty?
|
73
75
|
|
74
|
-
unless $
|
75
|
-
shade_constructions_from_model($
|
76
|
+
unless $shade_constructions.empty?
|
77
|
+
shade_constructions_from_model($shade_constructions).each do |shade_const|
|
76
78
|
hash[:properties][:energy][:constructions] << shade_const
|
77
79
|
end
|
78
80
|
end
|
@@ -215,16 +217,22 @@ module Honeybee
|
|
215
217
|
window_construction = false
|
216
218
|
opaque_construction = false
|
217
219
|
material = construction.layers[0]
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
220
|
+
unless material.nil?
|
221
|
+
if material.to_StandardGlazing.is_initialized or material.to_SimpleGlazing.is_initialized
|
222
|
+
window_construction = true
|
223
|
+
elsif material.to_StandardOpaqueMaterial.is_initialized or material.to_MasslessOpaqueMaterial.is_initialized
|
224
|
+
opaque_construction = true
|
225
|
+
end
|
226
|
+
if window_construction == true
|
227
|
+
constr_hash = WindowConstructionAbridged.from_construction(construction)
|
228
|
+
$window_constructions[constr_hash[:identifier]] = constr_hash
|
229
|
+
result << constr_hash
|
230
|
+
end
|
231
|
+
if opaque_construction == true
|
232
|
+
constr_hash = OpaqueConstructionAbridged.from_construction(construction)
|
233
|
+
$opaque_constructions[constr_hash[:identifier]] = constr_hash
|
234
|
+
result << constr_hash
|
235
|
+
end
|
228
236
|
end
|
229
237
|
end
|
230
238
|
|
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.18.
|
4
|
+
version: 2.18.1
|
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-06-
|
14
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|