Skip to content

Commit 9f3c9a1

Browse files
debug
1 parent 5fc7e48 commit 9f3c9a1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/test_components/autograd/numerical/test_autograd_polyslab_trianglemesh_numerical.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
squeeze_dimension,
2020
)
2121
from tidy3d import config
22-
from tidy3d.components.autograd import get_static
2322

2423
config.local_cache.enabled = True
2524
WL_UM = 0.65
@@ -91,8 +90,8 @@ def _triangles_from_params(params, box_center, xp):
9190

9291

9392
def make_trianglemesh_geometry(params, box_center):
94-
params_static = np.array(get_static(params))
95-
triangles = _triangles_from_params(params_static, box_center, np)
93+
# params_static = np.array(get_static(params))
94+
triangles = _triangles_from_params(params, box_center, np)
9695
mesh = td.TriangleMesh.from_triangles(triangles)
9796
return mesh
9897

tidy3d/components/geometry/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def from_triangles(cls, triangles: np.ndarray) -> TriangleMesh:
259259
The custom surface mesh geometry given by the triangles provided.
260260
261261
"""
262-
triangles = np.array(get_static(triangles))
262+
# triangles = np.array(triangles)
263263
if len(triangles.shape) != 3 or triangles.shape[1] != 3 or triangles.shape[2] != 3:
264264
raise ValidationError(
265265
f"Provided 'triangles' must be an N x 3 x 3 array, given {triangles.shape}."

0 commit comments

Comments
 (0)