honeybee-openstudio 2.31.11 → 2.31.12

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: '0891adec59cdacb1d4087ae318d65b3e2c8040001fa6d69004fe6c411f0f8358'
4
- data.tar.gz: 8ecb557c5ee160e73b3d2976ebf823848e19d5b89a8213444f597427d72601b9
3
+ metadata.gz: ee8eec97c23c887d5b2dd7b58552f50263b297d8e742026ed6d1fc570ba62877
4
+ data.tar.gz: 0d308433a4b52972492f5ad5681fd255244b029481eee40eafa219f9c1cf4402
5
5
  SHA512:
6
- metadata.gz: 784f5baee3c3cbbfbeb3062a7da3d5441255638876a78a54ea5fbf125415360f37d66f940a0af79a24dc439780c2cd3af02bf8149c9fe6f8b75ec18be271b085
7
- data.tar.gz: af83be8893b0c5ad133b8b136c40bdd019ea86f93782189ea93de3a45e4cd5797dc5071ea61537d0d5067adfdbb1bd59ffafd03ca36b92f8d26a7d68ef57a05c
6
+ metadata.gz: b0cef0873f51d1f92b7c0051721552a0439581e266c2b2c11a7908effea697957136c1860a04d80e8d7a314d41757fae1ca490a20bfcc83f63b22b75c3af0efc
7
+ data.tar.gz: 201801ee7a4ce00794c9358e879f5fdc0116e97d33181587e9f3e1bb1940d336ace21ef5253731e4caecf611f749a055aafdbb4433803cfdf3d9505252b8ff72
@@ -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.31.11'
7
+ spec.version = '2.31.12'
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
 
@@ -54,6 +54,7 @@ module Honeybee
54
54
  @@standards ||= @@extension.standards
55
55
  $triangulate_sub_faces = false
56
56
  $simple_window_cons = false
57
+ $orphan_groups = true
57
58
 
58
59
  @hash = hash
59
60
  @type = @hash[:type]
@@ -87,6 +87,7 @@ class FromHoneybeeModelToGbxml < OpenStudio::Measure::ModelMeasure
87
87
  end
88
88
  honeybee_model = Honeybee::Model.read_from_disk(model_json)
89
89
  $simple_window_cons = true
90
+ $orphan_groups = false
90
91
  STDOUT.flush
91
92
  os_model = honeybee_model.to_openstudio_model(model)
92
93
  STDOUT.flush
@@ -596,45 +596,64 @@ module Honeybee
596
596
 
597
597
  def create_orphaned_shades
598
598
  if @hash[:orphaned_shades]
599
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
600
- shading_surface_group.setShadingSurfaceType('Building')
599
+ if $orphan_groups
600
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
601
+ shading_surface_group.setShadingSurfaceType('Building')
602
+ end
601
603
  @hash[:orphaned_shades].each do |shade|
602
604
  shade_object = Shade.new(shade)
603
605
  openstudio_shade = shade_object.to_openstudio(@openstudio_model)
604
- openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
606
+ if $orphan_groups
607
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
608
+ end
605
609
  end
606
610
  end
607
611
  end
608
612
 
609
613
  def create_orphaned_faces
610
614
  if @hash[:orphaned_faces]
611
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
612
- shading_surface_group.setShadingSurfaceType('Building')
615
+ if $orphan_groups
616
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
617
+ shading_surface_group.setShadingSurfaceType('Building')
618
+ end
613
619
  @hash[:orphaned_faces].each do |face|
614
620
  face_object = Face.new(face)
615
621
  openstudio_shade = face_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
622
+ if $orphan_groups
623
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
624
+ end
616
625
  end
617
626
  end
618
627
  end
619
628
 
620
629
  def create_orphaned_apertures
621
630
  if @hash[:orphaned_apertures]
622
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
623
- shading_surface_group.setShadingSurfaceType('Building')
624
- @hash[:orphaned_apertures].each do |ap|
631
+ if $orphan_groups
632
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
633
+ shading_surface_group.setShadingSurfaceType('Building')
634
+ end
635
+ @hash[:orphaned_apertures].each do |ap|
625
636
  ap_object = Aperture.new(ap)
626
637
  openstudio_shade = ap_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
638
+ if $orphan_groups
639
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
640
+ end
627
641
  end
628
642
  end
629
643
  end
630
644
 
631
645
  def create_orphaned_doors
632
646
  if @hash[:orphaned_doors]
633
- shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
634
- shading_surface_group.setShadingSurfaceType('Building')
635
- @hash[:orphaned_doors].each do |dr|
647
+ if $orphan_groups
648
+ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model)
649
+ shading_surface_group.setShadingSurfaceType('Building')
650
+ end
651
+ @hash[:orphaned_doors].each do |dr|
636
652
  dr_object = Door.new(dr)
637
653
  openstudio_shade = dr_object.to_openstudio_shade(@openstudio_model, shading_surface_group)
654
+ if $orphan_groups
655
+ openstudio_shade.setShadingSurfaceGroup(shading_surface_group)
656
+ end
638
657
  end
639
658
  end
640
659
  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.31.11
4
+ version: 2.31.12
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: 2022-07-07 00:00:00.000000000 Z
14
+ date: 2022-07-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler