honeybee-openstudio 2.34.7 → 2.34.8

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: 96a0a6d175cfae2a36f0daa5775cb1f6979fce972e4bdb818dac0e1df67cb9ef
4
- data.tar.gz: e868b0348f3bd8ea2dcdca115e5e7cbbb955c528a97c5b27dcd6b74e5fbb2a73
3
+ metadata.gz: badea0be05124c62097e7732560433b8a1d8941aecc21af3e9ab8f2e7b19b837
4
+ data.tar.gz: 53ddac62aaffe8a76f01ac3f8bf02f0b167dca4fc0aa3b509c6b11e3d6181fec
5
5
  SHA512:
6
- metadata.gz: 9af5f2469ca5849ccc9c5cd12d55ec3bdf495aa8fb75e966948cfa2e6edf359aaa86cc63cd8deadc5d4f8953d05412e1bf5af2500e08f86be6ac63e009a103bd
7
- data.tar.gz: a76b8a5d6899d58366303323625fc0428cc6f1ac7602466980a7da0e8b10b29527634c5ebf13622e0d39e363bd5fc8964a869251d4baa41d8626ee904cff2de8
6
+ metadata.gz: 98558f65b918299e64548cb37ff75d2a9042970ccf64cb9ece29a7b772645e06d59a1e3ba212948ef312873c72d7a721d9066212d0947248905285e9bf5cb34d
7
+ data.tar.gz: 901a6c78784757090e5873f282bdfc870de96c4cbe96d061ac8c80831431f51432fb79f3c8f5ae8e258b5c0904b878312e443a0a8d28eb41e2bd290dc09fbf02
@@ -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'
7
+ spec.version = '2.34.8'
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
 
@@ -45,19 +45,20 @@ module Honeybee
45
45
  end
46
46
 
47
47
  def to_openstudio(openstudio_model)
48
- # write the shaded and unsaded versions of the construction into the model
49
- # reverse the shaded and unshaded identifiers so unshaded one is assigned to apertures
48
+ # set the unshaded ID to be the whole construction ID so unshaded one is assigned to apertures
50
49
  unshd_id = @hash[:identifier]
51
- shd_id = @hash[:window_construction][:identifier]
52
50
  @hash[:window_construction][:identifier] = unshd_id
51
+ # derive a new ID for the shaded construction that will not conflict with any bare versions of the construction
52
+ shd_id = @hash[:identifier] + '_Shaded'
53
53
  @hash[:identifier] = shd_id
54
+
54
55
  # create the unshaded construction
55
56
  unshd_constr_obj = WindowConstructionAbridged.new(@hash[:window_construction])
56
57
  @construction = unshd_constr_obj.to_openstudio(openstudio_model)
57
58
 
58
59
  # create the shaded construction
59
60
  @shade_construction = OpenStudio::Model::Construction.new(openstudio_model)
60
- @shade_construction.setName(shd_id)
61
+ @shade_construction.setName(@hash[:identifier])
61
62
  unless @hash[:display_name].nil?
62
63
  @shade_construction.setDisplayName(@hash[:display_name])
63
64
  end
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.7
4
+ version: 2.34.8
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-07-04 00:00:00.000000000 Z
14
+ date: 2023-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure