honeybee-core 1.64.8__py3-none-any.whl → 1.64.10__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/model.py CHANGED
@@ -14,8 +14,7 @@ except ImportError: # wea are in cPython
14
14
  import pickle
15
15
 
16
16
  from ladybug_geometry.geometry2d import Polygon2D
17
- from ladybug_geometry.geometry3d import Vector3D, Point3D, Plane, Face3D, \
18
- Mesh3D, Polyface3D
17
+ from ladybug_geometry.geometry3d import Vector3D, Plane, Face3D, Mesh3D, Polyface3D
19
18
  from ladybug_geometry.bounding import overlapping_bounding_boxes
20
19
  from ladybug_geometry.interop.stl import STL
21
20
 
@@ -2407,23 +2406,14 @@ class Model(_Base):
2407
2406
  high that floating point tolerance interferes with the proper
2408
2407
  representation of the model's details.
2409
2408
 
2410
- In addition to moving the model such that the new_origin sets the
2411
- coordinate values of the geometry, this method will also set the
2412
- reference_vector of this object such that any models added into this
2413
- one from the original source coordinate system respect the new system.
2414
-
2415
2409
  Args:
2416
2410
  new_origin: A Point3D in the model's current coordinate system that
2417
2411
  will become the origin of the new coordinate system. If unspecified,
2418
2412
  the minimum of the bounding box around the model geometry will
2419
- be used and the average_height_above_ground will be used to
2420
- set the Z coordinate. (Default: None).
2413
+ be used. (Default: None).
2421
2414
  """
2422
- # compute the new_origin from the bounding box around the geometry
2423
2415
  if new_origin is None:
2424
- min_2d = self.min
2425
- z_val = self.average_height - self.average_height_above_ground
2426
- new_origin = Point3D(min_2d.x, min_2d.y, z_val)
2416
+ new_origin = self.min
2427
2417
  # move the geometry using a vector that is the inverse of the origin
2428
2418
  ref_vec = Vector3D(-new_origin.x, -new_origin.y, -new_origin.z)
2429
2419
  self.move(ref_vec)
honeybee/typing.py CHANGED
@@ -184,8 +184,8 @@ def clean_string(value, input_name=''):
184
184
  sha256_hash = hashlib.sha256(value.encode('utf-8'))
185
185
  hash_str = str(sha256_hash.hexdigest())
186
186
  return hash_str[:8] if len(hash_str) > 8 else hash_str
187
- assert len(val) <= 100, 'Input {} "{}" must be less than 100 characters.'.format(
188
- input_name, value)
187
+ if len(val) > 100:
188
+ val = val[:100]
189
189
  return val
190
190
 
191
191
 
@@ -228,8 +228,8 @@ def clean_ep_string(value, input_name=''):
228
228
  sha256_hash = hashlib.sha256(value.encode('utf-8'))
229
229
  hash_str = str(sha256_hash.hexdigest())
230
230
  return hash_str[:8] if len(hash_str) > 8 else hash_str
231
- assert len(val) <= 100, 'Input {} "{}" must be less than 100 characters.'.format(
232
- input_name, value)
231
+ if len(val) > 100:
232
+ val = val[:100]
233
233
  return val
234
234
 
235
235
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: honeybee-core
3
- Version: 1.64.8
3
+ Version: 1.64.10
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,7 +18,7 @@ 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.29
21
+ Requires-Dist: ladybug-core==0.44.30
22
22
  Requires-Dist: ladybug-geometry-polyskel==1.7.35
23
23
  Requires-Dist: honeybee-schema==1.59.1; python_version >= "3.7"
24
24
  Dynamic: author
@@ -16,14 +16,14 @@ honeybee/extensionutil.py,sha256=DDQYhM7tFD3avRSCOjwTzLqX9ldUxl5GzY79V3_sATE,964
16
16
  honeybee/face.py,sha256=BOL2tlFLErxY27euixVWFzL1z-xtABtzvMmLIpzMqcE,111961
17
17
  honeybee/facetype.py,sha256=vCtWZKHp21RH-Yzs8zsHJHuFhJvczNh0yFl8wDe_RWY,4489
18
18
  honeybee/logutil.py,sha256=2gn-6RcWqFLvwdFzBHPqUwFqTj_R3iwHKALrl-2eL7M,2564
19
- honeybee/model.py,sha256=Y-uLvOebXXfGc2QrswKyShcVtvGe7tvUDCk9rPdzEGk,204717
19
+ honeybee/model.py,sha256=tMF9Gjph2BbdPcn2b7P2B2cRnIgNGrKDUVbrUYCPmeY,204103
20
20
  honeybee/orientation.py,sha256=GogGblASW9OU-fobfDaQ7w5yRbEAFdJJuHwg2fadhKI,5046
21
21
  honeybee/properties.py,sha256=ok976fbUdXzLDR2XiPNf8Q5ejfOM-PArqm5CVUbFiCc,34316
22
22
  honeybee/room.py,sha256=ptwpQPx6FpWgu7A0XhM2rekZY6dXMZCC62kwpn00JAY,169215
23
23
  honeybee/search.py,sha256=KOIeQjYdj0yhRWPmF5kiFiH8Ei0WbzuiU-capnwYVeM,5060
24
24
  honeybee/shade.py,sha256=2zuW1lR5wfe-UyAosuCX-3tII6CKONq7wt8Ac_jXU6c,20698
25
25
  honeybee/shademesh.py,sha256=WnpYkt04zuB8w-6OETNP7ZfzJarykEkQig6YdNkuVOw,14069
26
- honeybee/typing.py,sha256=E8-HrCB9cSoqhFR6zcFXhrAlQRAFw_sxHGdobB8Lre8,20051
26
+ honeybee/typing.py,sha256=WT50PeWLucsWOkY-qgt2ORMdUjmzHrVqFmLMHQcaWtg,19919
27
27
  honeybee/units.py,sha256=_qG_G5b9hdqjpyVOpGdIYCB6k8VKYjcxSJn1St-7Xjc,3204
28
28
  honeybee/cli/__init__.py,sha256=nYyTV_HapGo-a1XZLZps9__Bqp50YJYzHZ1LzHp4TJU,3675
29
29
  honeybee/cli/compare.py,sha256=CxOtGnaDkc9ACt6MgkQBUcNuP0aBS4Kb7vsWDYnRnY8,6544
@@ -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.64.8.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
44
- honeybee_core-1.64.8.dist-info/METADATA,sha256=2vqVeyiy6urF6oMS0vMJyxCGBHQ9lifsrRE7LGFth9c,3729
45
- honeybee_core-1.64.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- honeybee_core-1.64.8.dist-info/entry_points.txt,sha256=r3YqOm40goBroH3ccUhpwQjvTwu10JWLd0HIRHI1J8E,47
47
- honeybee_core-1.64.8.dist-info/top_level.txt,sha256=8ve7puCRLUA9XDEGc1Mcs-UX9sFjpPV8MeTaIMwQ_Tg,9
48
- honeybee_core-1.64.8.dist-info/RECORD,,
43
+ honeybee_core-1.64.10.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
44
+ honeybee_core-1.64.10.dist-info/METADATA,sha256=lesYyGP8bsTX1Lw_c_Ya4GNK78XaBq3uvLbD4-EtRwE,3730
45
+ honeybee_core-1.64.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
46
+ honeybee_core-1.64.10.dist-info/entry_points.txt,sha256=r3YqOm40goBroH3ccUhpwQjvTwu10JWLd0HIRHI1J8E,47
47
+ honeybee_core-1.64.10.dist-info/top_level.txt,sha256=8ve7puCRLUA9XDEGc1Mcs-UX9sFjpPV8MeTaIMwQ_Tg,9
48
+ honeybee_core-1.64.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5