Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex committed Aug 22, 2024
1 parent 8bc6705 commit 6bb5f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_components/test_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions tidy3d/components/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bb5f42

Please sign in to comment.