From 73a44c6d5cb3e140698ea2ae6c23cff9165db999 Mon Sep 17 00:00:00 2001 From: Jonathon Broughton Date: Sun, 12 Nov 2023 17:43:46 +0000 Subject: [PATCH] Dependency mess --- Geometry/p.py | 4 ++-- Utilities/flatten.py | 2 +- requirements.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/Geometry/p.py b/Geometry/p.py index 2fa9209..cb7424e 100644 --- a/Geometry/p.py +++ b/Geometry/p.py @@ -1,11 +1,11 @@ import pymesh +import numpy as np vertices = [ [0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0] - ] faces = [ @@ -13,4 +13,4 @@ [0, 2, 3] ] -mesh = pymesh.form_mesh(vertices, faces) +mesh = pymesh.form_mesh(np.array(vertices), faces) diff --git a/Utilities/flatten.py b/Utilities/flatten.py index b51b587..b0aed96 100644 --- a/Utilities/flatten.py +++ b/Utilities/flatten.py @@ -1,5 +1,5 @@ """Helper module for a simple speckle object tree flattening.""" -from typing import Tuple, Optional +from typing import Tuple, Optional, List from specklepy.objects import Base from specklepy.objects.other import Instance, Transform diff --git a/requirements.txt b/requirements.txt index 6afde16..0bd17e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -643,3 +643,51 @@ yarl==1.9.2 ; python_version >= "3.10" and python_version < "4.0" \ --hash=sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7 \ --hash=sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78 \ --hash=sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7 + +yarl~=1.9.2 +gql~=3.4.1 +backoff~=2.2.1 +multidict~=6.0.4 +requests~=2.31.0 +websockets~=10.4 +pytest~=7.4.2 +h11~=0.14.0 +pip~=23.3.1 +attrs~=23.1.0 +wheel~=0.40.0 +mypy~=1.6.1 +idna~=3.4 +sniffio~=1.3.0 +black~=23.10.0 +platformdirs~=3.11.0 +packaging~=23.2 +pathspec~=0.11.2 +click~=8.1.5 +httpcore~=1.0.2 +certifi~=2023.7.22 +setuptools~=65.5.0 +numpy~=1.25.2 +pluggy~=1.3.0 +Deprecated~=1.2.14 +iniconfig~=2.0.0 +trimesh~=4.0.4 +anyio~=4.0.0 +pydantic~=2.4.2 +urllib3~=1.26.18 +specklepy~=2.17.11 +stringcase~=1.2.0 +ujson~=5.8.0 +wrapt~=1.16.0 +httpx~=0.25.1 +Pillow~=10.1.0 +docutils~=0.20.1 +sphinx~=7.0.1 +Jinja2~=3.1.2 +filelock~=3.12.2 +Pygments~=2.15.1 +pytz~=2023.3.post1 +networkx~=3.1 +scipy~=1.11.1 +psutil~=5.9.5 +python-dotenv~=1.0.0 +pymesh~=1.0.2 \ No newline at end of file