Skip to content

Commit aa8e786

Browse files
committed
fix: remove unneeded warning with Medium2D and mode solver
1 parent cc5ed77 commit aa8e786

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6969
- More robust method for suppressing RF license warnings during tests.
7070
- Fixed frequency sampling of `TransmissionLineDataset` within `MicrowaveModeData` when using group index calculation.
7171
- Fixed DRC parsing for quoted categories in klayout plugin.
72+
- Removed mode solver warnings about evaluating permittivity of a `Medium2D`.
7273

7374
### Removed
7475
- Removed deprecated `use_complex_fields` parameter from `TwoPhotonAbsorption` and `KerrNonlinearity`. Parameters `beta` and `n2` are now real-valued only, as is `n0` if specified.

tidy3d/components/mode/mode_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ def _is_tensorial(self) -> bool:
19141914
def _intersecting_media(self) -> list:
19151915
"""List of media (including simulation background) intersecting the mode plane."""
19161916
total_structures = [self.simulation.scene.background_structure]
1917-
total_structures += list(self.simulation.structures)
1917+
total_structures += list(self.simulation.volumetric_structures)
19181918
return self.simulation.scene.intersecting_media(self.plane, total_structures)
19191919

19201920
@cached_property

0 commit comments

Comments
 (0)