From 6bb5f422d4b5320de6c3aa078be1653b33ca3268 Mon Sep 17 00:00:00 2001 From: Tyler Hughes Date: Thu, 22 Aug 2024 13:59:41 -0400 Subject: [PATCH] fix broken test --- tests/test_components/test_autograd.py | 2 +- tidy3d/components/scene.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_components/test_autograd.py b/tests/test_components/test_autograd.py index 57ab169b17..39a141c748 100644 --- a/tests/test_components/test_autograd.py +++ b/tests/test_components/test_autograd.py @@ -392,7 +392,7 @@ def make_structures(params: anp.ndarray) -> dict[str, td.Structure]: custom_med_pole_res = td.CustomPoleResidue(eps_inf=eps_inf, poles=[(a1, c1), (a2, c2)]) custom_pole_res = td.Structure(geometry=box, medium=custom_med_pole_res) - radius = 0.6 * (1 + anp.abs(vector @ params)) + radius = 0.4 * (1 + anp.abs(vector @ params)) cyl_center_y = vector @ params cyl_center_z = -vector @ params cylinder_geo = td.Cylinder( diff --git a/tidy3d/components/scene.py b/tidy3d/components/scene.py index e64ac6bdf2..8f731632c5 100644 --- a/tidy3d/components/scene.py +++ b/tidy3d/components/scene.py @@ -240,6 +240,7 @@ def intersecting_media( List[:class:`.AbstractMedium`] Set of distinct mediums that intersect with the given planar object. """ + structures = [s.to_static() for s in structures] if test_object.size.count(0.0) == 1: # get all merged structures on the test_object, which is already planar structures_merged = Scene._filter_structures_plane_medium(structures, test_object)