Skip to content

Commit 631e780

Browse files
MediumMonitor in ModeSimulation
1 parent 3058747 commit 631e780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidy3d/components/mode/simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ def run_local(self):
259259
return subpixel_sim.run_local()
260260

261261
for mnt in self.monitors:
262-
if isinstance(mnt, PermittivityMonitor):
262+
if isinstance(mnt, (PermittivityMonitor, MediumMonitor)):
263263
raise SetupError(
264264
"The package 'tidy3d-extras' is required "
265-
"for accurate local 'PermittivityMonitor' handling. "
265+
"for accurate local 'PermittivityMonitor' and 'MediumMonitor' handling. "
266266
"Please install this package using, for example, "
267267
"'pip install tidy3d[extras]', and ensure "
268268
"'config.use_local_subpixel' is not 'False'. "

0 commit comments

Comments
 (0)