honeybee-core 1.62.3__tar.gz → 1.62.5__tar.gz

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.
Files changed (113) hide show
  1. {honeybee_core-1.62.3/honeybee_core.egg-info → honeybee_core-1.62.5}/PKG-INFO +3 -3
  2. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/aperture.py +7 -0
  3. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/door.py +7 -0
  4. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/model.py +18 -18
  5. {honeybee_core-1.62.3 → honeybee_core-1.62.5/honeybee_core.egg-info}/PKG-INFO +3 -3
  6. honeybee_core-1.62.5/honeybee_core.egg-info/requires.txt +5 -0
  7. honeybee_core-1.62.5/requirements.txt +3 -0
  8. honeybee_core-1.62.3/honeybee_core.egg-info/requires.txt +0 -5
  9. honeybee_core-1.62.3/requirements.txt +0 -3
  10. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/.github/workflows/ci.yaml +0 -0
  11. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/.github/workflows/dependency-release.yaml +0 -0
  12. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/.gitignore +0 -0
  13. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/.releaserc.json +0 -0
  14. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/CODE_OF_CONDUCT.md +0 -0
  15. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/CONTRIBUTING.md +0 -0
  16. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/LICENSE +0 -0
  17. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/MANIFEST.in +0 -0
  18. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/README.md +0 -0
  19. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/deploy.sh +0 -0
  20. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/dev-requirements.txt +0 -0
  21. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/_build/.nojekyll +0 -0
  22. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/_build/README.md +0 -0
  23. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/_build/docs/README.md +0 -0
  24. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/_static/custom.css +0 -0
  25. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/_templates/layout.html +0 -0
  26. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/cli/index.rst +0 -0
  27. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/conf.py +0 -0
  28. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/docs/index.rst +0 -0
  29. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/__init__.py +0 -0
  30. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/__main__.py +0 -0
  31. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/_base.py +0 -0
  32. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/_basewithshade.py +0 -0
  33. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/_lockable.py +0 -0
  34. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/altnumber.py +0 -0
  35. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/boundarycondition.py +0 -0
  36. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/checkdup.py +0 -0
  37. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/__init__.py +0 -0
  38. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/compare.py +0 -0
  39. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/create.py +0 -0
  40. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/edit.py +0 -0
  41. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/lib.py +0 -0
  42. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/setconfig.py +0 -0
  43. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/cli/validate.py +0 -0
  44. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/colorobj.py +0 -0
  45. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/config.json +0 -0
  46. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/config.py +0 -0
  47. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/dictutil.py +0 -0
  48. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/extensionutil.py +0 -0
  49. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/face.py +0 -0
  50. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/facetype.py +0 -0
  51. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/logutil.py +0 -0
  52. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/orientation.py +0 -0
  53. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/properties.py +0 -0
  54. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/room.py +0 -0
  55. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/search.py +0 -0
  56. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/shade.py +0 -0
  57. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/shademesh.py +0 -0
  58. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/typing.py +0 -0
  59. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/units.py +0 -0
  60. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/__init__.py +0 -0
  61. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/aperture.py +0 -0
  62. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/door.py +0 -0
  63. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/face.py +0 -0
  64. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/model.py +0 -0
  65. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/room.py +0 -0
  66. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/shade.py +0 -0
  67. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee/writer/shademesh.py +0 -0
  68. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee_core.egg-info/SOURCES.txt +0 -0
  69. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee_core.egg-info/dependency_links.txt +0 -0
  70. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee_core.egg-info/entry_points.txt +0 -0
  71. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/honeybee_core.egg-info/top_level.txt +0 -0
  72. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/setup.cfg +0 -0
  73. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/setup.py +0 -0
  74. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/__init__.py +0 -0
  75. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/aperture_test.py +0 -0
  76. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/boundary_condition_test.py +0 -0
  77. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/cli_compare_test.py +0 -0
  78. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/cli_create_test.py +0 -0
  79. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/cli_edit_test.py +0 -0
  80. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/cli_validate_test.py +0 -0
  81. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/colorobj_test.py +0 -0
  82. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/config_test.py +0 -0
  83. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/dictutil_test.py +0 -0
  84. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/door_test.py +0 -0
  85. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/face_test.py +0 -0
  86. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/facetype_test.py +0 -0
  87. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/ShoeBox.json +0 -0
  88. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/bad_geometry_model.hbjson +0 -0
  89. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/colliding_room_volumes.hbjson +0 -0
  90. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/compare_model_1.hbjson +0 -0
  91. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/compare_model_2.hbjson +0 -0
  92. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/complex_polyfaces.json +0 -0
  93. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/minor_geometry/existing_model.hbjson +0 -0
  94. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/minor_geometry/updated_model.hbjson +0 -0
  95. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/mismatched_area_adj.hbjson +0 -0
  96. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/model_with_adiabatic.hbjson +0 -0
  97. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/model_with_holes.hbjson +0 -0
  98. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/model_without_adjacency.hbjson +0 -0
  99. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/nonascii_face.json +0 -0
  100. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/polygons_for_gap_boundary.json +0 -0
  101. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/room_for_window_offset.hbjson +0 -0
  102. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/json/single_family_home.hbjson +0 -0
  103. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/lockable_test.py +0 -0
  104. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/model_test.py +0 -0
  105. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/orientation_test.py +0 -0
  106. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/room_test.py +0 -0
  107. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/search_test.py +0 -0
  108. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/shade_test.py +0 -0
  109. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/shademesh_test.py +0 -0
  110. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/stl/cube_ascii.stl +0 -0
  111. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/stl/cube_binary.stl +0 -0
  112. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/typing_test.py +0 -0
  113. {honeybee_core-1.62.3 → honeybee_core-1.62.5}/tests/units_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: honeybee-core
3
- Version: 1.62.3
3
+ Version: 1.62.5
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
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: Implementation :: IronPython
18
18
  Classifier: Operating System :: OS Independent
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
- Requires-Dist: ladybug-core==0.44.22
22
- Requires-Dist: ladybug-geometry-polyskel==1.7.31
21
+ Requires-Dist: ladybug-core==0.44.24
22
+ Requires-Dist: ladybug-geometry-polyskel==1.7.33
23
23
  Requires-Dist: honeybee-schema==1.59.1; python_version >= "3.7"
24
24
  Dynamic: author
25
25
  Dynamic: author-email
@@ -94,6 +94,13 @@ class Aperture(_BaseWithShade):
94
94
  assert data['type'] == 'Aperture', 'Expected Aperture dictionary. ' \
95
95
  'Got {}.'.format(data['type'])
96
96
 
97
+ # remove any invalid holes from the geometry
98
+ geo_dict = data['geometry']
99
+ if 'holes' in geo_dict and geo_dict['holes'] is not None:
100
+ for i, hole_list in enumerate(geo_dict['holes']):
101
+ if len(hole_list) < 3:
102
+ geo_dict['holes'].pop(i)
103
+
97
104
  # serialize the aperture
98
105
  is_operable = data['is_operable'] if 'is_operable' in data else False
99
106
  if data['boundary_condition']['type'] == 'Outdoors':
@@ -96,6 +96,13 @@ class Door(_BaseWithShade):
96
96
  assert data['type'] == 'Door', 'Expected Door dictionary. ' \
97
97
  'Got {}.'.format(data['type'])
98
98
 
99
+ # remove any invalid holes from the geometry
100
+ geo_dict = data['geometry']
101
+ if 'holes' in geo_dict and geo_dict['holes'] is not None:
102
+ for i, hole_list in enumerate(geo_dict['holes']):
103
+ if len(hole_list) < 3:
104
+ geo_dict['holes'].pop(i)
105
+
99
106
  # serialize the door
100
107
  is_glass = data['is_glass'] if 'is_glass' in data else False
101
108
  if data['boundary_condition']['type'] == 'Outdoors':
@@ -3607,22 +3607,21 @@ class Model(_Base):
3607
3607
  report = 'Input Model for validation is not a Model object, ' \
3608
3608
  'file path to a Model or a Model HBJSON string.'
3609
3609
 
3610
- # get the function to call to do checks
3611
- if '.' in check_function: # nested attribute
3612
- attributes = check_function.split('.') # get all the sub-attributes
3613
- check_func = model
3614
- for attribute in attributes:
3615
- if check_func is None:
3616
- continue
3617
- check_func = getattr(check_func, attribute, None)
3618
- else:
3619
- check_func = getattr(model, check_function, None)
3620
- assert check_func is not None, \
3621
- 'Honeybee Model class has no method {}'.format(check_function)
3622
-
3623
- # process the arguments and options
3624
- args = [] if check_args is None else [] + list(check_args)
3625
- kwargs = {'raise_exception': False}
3610
+ if report == '': # get the function to call to do checks
3611
+ if '.' in check_function: # nested attribute
3612
+ attributes = check_function.split('.') # get all the sub-attributes
3613
+ check_func = model
3614
+ for attribute in attributes:
3615
+ if check_func is None:
3616
+ continue
3617
+ check_func = getattr(check_func, attribute, None)
3618
+ else:
3619
+ check_func = getattr(model, check_function, None)
3620
+ assert check_func is not None, \
3621
+ 'Honeybee Model class has no method {}'.format(check_function)
3622
+ # process the arguments and options
3623
+ args = [] if check_args is None else [] + list(check_args)
3624
+ kwargs = {'raise_exception': False}
3626
3625
 
3627
3626
  # create the report
3628
3627
  if not json_output: # create a plain text report
@@ -3632,8 +3631,9 @@ class Model(_Base):
3632
3631
  ver_msg = 'Validating Model using honeybee-core=={} and ' \
3633
3632
  'honeybee-schema=={}'.format(c_ver, s_ver)
3634
3633
  # run the check function
3635
- kwargs['detailed'] = False
3636
- report = check_func(*args, **kwargs)
3634
+ if report == '':
3635
+ kwargs['detailed'] = False
3636
+ report = check_func(*args, **kwargs)
3637
3637
  # format the results of the check
3638
3638
  if report == '':
3639
3639
  full_msg = ver_msg + '\nCongratulations! Your Model is valid!'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: honeybee-core
3
- Version: 1.62.3
3
+ Version: 1.62.5
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
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: Implementation :: IronPython
18
18
  Classifier: Operating System :: OS Independent
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
- Requires-Dist: ladybug-core==0.44.22
22
- Requires-Dist: ladybug-geometry-polyskel==1.7.31
21
+ Requires-Dist: ladybug-core==0.44.24
22
+ Requires-Dist: ladybug-geometry-polyskel==1.7.33
23
23
  Requires-Dist: honeybee-schema==1.59.1; python_version >= "3.7"
24
24
  Dynamic: author
25
25
  Dynamic: author-email
@@ -0,0 +1,5 @@
1
+ ladybug-core==0.44.24
2
+ ladybug-geometry-polyskel==1.7.33
3
+
4
+ [:python_version >= "3.7"]
5
+ honeybee-schema==1.59.1
@@ -0,0 +1,3 @@
1
+ ladybug-core==0.44.24
2
+ ladybug-geometry-polyskel==1.7.33
3
+ honeybee-schema==1.59.1;python_version>='3.7'
@@ -1,5 +0,0 @@
1
- ladybug-core==0.44.22
2
- ladybug-geometry-polyskel==1.7.31
3
-
4
- [:python_version >= "3.7"]
5
- honeybee-schema==1.59.1
@@ -1,3 +0,0 @@
1
- ladybug-core==0.44.22
2
- ladybug-geometry-polyskel==1.7.31
3
- honeybee-schema==1.59.1;python_version>='3.7'
File without changes
File without changes
File without changes
File without changes
File without changes