honeybee-core 1.61.26__py2.py3-none-any.whl → 1.61.27__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
honeybee/shade.py CHANGED
@@ -84,9 +84,16 @@ class Shade(_Base):
84
84
  assert data['type'] == 'Shade', 'Expected Shade dictionary. ' \
85
85
  'Got {}.'.format(data['type'])
86
86
 
87
+ # remove any invalid holes from the geometry
88
+ geo_dict = data['geometry']
89
+ if 'holes' in geo_dict and geo_dict['holes'] is not None:
90
+ for i, hole_list in enumerate(geo_dict['holes']):
91
+ if len(hole_list) < 3:
92
+ geo_dict['holes'].pop(i)
93
+
94
+ # serialize the dictionary to an object
87
95
  is_detached = data['is_detached'] if 'is_detached' in data else False
88
- shade = cls(
89
- data['identifier'], Face3D.from_dict(data['geometry']), is_detached)
96
+ shade = cls(data['identifier'], Face3D.from_dict(geo_dict), is_detached)
90
97
  if 'display_name' in data and data['display_name'] is not None:
91
98
  shade.display_name = data['display_name']
92
99
  if 'user_data' in data and data['user_data'] is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-core
3
- Version: 1.61.26
3
+ Version: 1.61.27
4
4
  Summary: A library to create 3D building geometry for various types of environmental simulation.
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-core
6
6
  Author: Ladybug Tools
@@ -21,7 +21,7 @@ honeybee/orientation.py,sha256=GogGblASW9OU-fobfDaQ7w5yRbEAFdJJuHwg2fadhKI,5046
21
21
  honeybee/properties.py,sha256=fnlT71in22HpFQGD8ta5kXNnSZVXwXq5cNgvD-hrMRg,33462
22
22
  honeybee/room.py,sha256=lZZR_ZIpu3ZatnlRSZe4mjirkfJo8FCwRQmgsuR-6d8,150193
23
23
  honeybee/search.py,sha256=OiXibGGVb1ff4gTn_768i-sehB-zAYG12c0o3B0RjKE,4718
24
- honeybee/shade.py,sha256=G_ujmsPQeKvcc0O1ICiFRhVkjypkKBbgY9wJKck-9uU,19393
24
+ honeybee/shade.py,sha256=GSlceN2kpo8NOc_QkvvxEhKozRytOS8InZ1Ge0fPuko,19746
25
25
  honeybee/shademesh.py,sha256=oldugnwhu-ibX9f0hfxpO-DvgM8U7S-dYwUjBSVzo4g,13273
26
26
  honeybee/typing.py,sha256=rt8P1JdNw9wY2cIbgziBZ3ZUBrOFh_34UP0vaO4H82o,19124
27
27
  honeybee/units.py,sha256=_qG_G5b9hdqjpyVOpGdIYCB6k8VKYjcxSJn1St-7Xjc,3204
@@ -40,9 +40,9 @@ honeybee/writer/model.py,sha256=N7F_jksf-5TrdVecuxTaFWxnPVFLmQs7k8g27TsdB7Q,177
40
40
  honeybee/writer/room.py,sha256=kFghgStTU1SEJSLigXB0VjOWhZtgs4uXuAqdwd4yRQo,174
41
41
  honeybee/writer/shade.py,sha256=EpgX-vMc-s21TnMvNWvWTKyT8iAnxu1nFVXzjY1oyF8,177
42
42
  honeybee/writer/shademesh.py,sha256=Y41bLogJ7dwpvMe5cAWVRDRVqJEwo9e5hFJQjlt6UX8,189
43
- honeybee_core-1.61.26.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
44
- honeybee_core-1.61.26.dist-info/METADATA,sha256=vOqjv-qzq6MDrqa9BcWGmSKnXGMFXj9kDT5dfiUjZe0,3317
45
- honeybee_core-1.61.26.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
46
- honeybee_core-1.61.26.dist-info/entry_points.txt,sha256=r3YqOm40goBroH3ccUhpwQjvTwu10JWLd0HIRHI1J8E,47
47
- honeybee_core-1.61.26.dist-info/top_level.txt,sha256=8ve7puCRLUA9XDEGc1Mcs-UX9sFjpPV8MeTaIMwQ_Tg,9
48
- honeybee_core-1.61.26.dist-info/RECORD,,
43
+ honeybee_core-1.61.27.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
44
+ honeybee_core-1.61.27.dist-info/METADATA,sha256=HQUJevfyG3YX0zrbcQHW4AWqfxVKIUKlgvD3YnGovNg,3317
45
+ honeybee_core-1.61.27.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
46
+ honeybee_core-1.61.27.dist-info/entry_points.txt,sha256=r3YqOm40goBroH3ccUhpwQjvTwu10JWLd0HIRHI1J8E,47
47
+ honeybee_core-1.61.27.dist-info/top_level.txt,sha256=8ve7puCRLUA9XDEGc1Mcs-UX9sFjpPV8MeTaIMwQ_Tg,9
48
+ honeybee_core-1.61.27.dist-info/RECORD,,