honeybee-openstudio 2.3.1 → 2.3.2

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: bb16df757fa85b24a3116a9016d534599107db2cb208991dae71d23646aefa61
4
- data.tar.gz: 8981a037901c7ec22afe4ee1b8be5b397bcadd31fb18170ce9a1f0151f256d49
3
+ metadata.gz: 439e9933614d79f4f3c3657e4a9719f14e25a548325f9ef9e924e1f8c644ea51
4
+ data.tar.gz: 159a0b788d83a25cae21646285821742d212655ce6d9929695c7203a4b420ba2
5
5
  SHA512:
6
- metadata.gz: 815404a8a07010a405032c1f6a6d76d16d7bfdf4d277f5d55f83c2b0d5b65e7d6adf34788346d94131f2fc350298dcc3e67867cbae4dd000716c4f053f45d788
7
- data.tar.gz: 0c19b5fff00ab1758fc599ecc1f27fd6d4380a86d0fcd29acf9f8a59c578fe586dcec324b54e8e74500f0af0d9229147dfa75a02d19a96b1eb13e2df3fcb19c9
6
+ metadata.gz: 4fe4189debb249e9005a4ca960c59ebd32d019696271dc2e4cce7c80ab4acafbcaca359d1670bd170561f0a0c1e55b58d29892aa31f79f2bbc948a7b6061527f
7
+ data.tar.gz: 8f7f684379c1087c949cfbb3d427fe26a3fb0e996990d79aa4ea3d36c41a098a6624024d61312cb107b9a3c0012ff7f9d962fe5954959dc6a454d7d694482710
@@ -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.3.1'
7
+ spec.version = '2.3.2'
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
 
@@ -97,9 +97,10 @@ module FromHoneybee
97
97
  shd_mat_name = openstudio_model.getMaterialByName(@hash[:shade_material])
98
98
  unless shd_mat_name.empty?
99
99
  @shade_material = shd_mat_name.get
100
+ obj_type = @shade_material.iddObject.name
100
101
  end
101
102
  unless @shade_material.nil?
102
- if @shade_material.is_a? OpenStudio::Model::StandardGlazing
103
+ if obj_type == 'OS:WindowMaterial:StandardGlazing'
103
104
  if @shade_location == 'Interior'
104
105
  os_materials[-1] = @shade_material
105
106
  elsif @shade_location == 'Exterior' | os_materials.length < 2
@@ -159,9 +160,12 @@ module FromHoneybee
159
160
  os_shade_control = OpenStudio::Model::ShadingControl.new(@shade_construction)
160
161
 
161
162
  # figure out the shading type
162
- if @shade_material.is_a? OpenStudio::Model::StandardGlazing
163
+ unless @shade_material.nil?
164
+ obj_type = @shade_material.iddObject.name
165
+ end
166
+ if obj_type == 'OS:WindowMaterial:StandardGlazing'
163
167
  shd_type = 'SwitchableGlazing'
164
- elsif @shade_material.is_a? OpenStudio::Model::Blind
168
+ elsif obj_type == 'OS:WindowMaterial:Blind'
165
169
  if @shade_location == 'Between'
166
170
  shd_type = 'BetweenGlassBlind'
167
171
  else
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.3.1
4
+ version: 2.3.2
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: 2020-07-09 00:00:00.000000000 Z
14
+ date: 2020-07-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler