From 4219c2469dc85a418588dbaff7c91c9fb87d5800 Mon Sep 17 00:00:00 2001 From: Weiliang Jin Date: Wed, 8 Nov 2023 09:45:29 -0800 Subject: [PATCH] Fix istropic_pec checking --- tidy3d/components/medium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidy3d/components/medium.py b/tidy3d/components/medium.py index 807b7f286a..0268cf969a 100644 --- a/tidy3d/components/medium.py +++ b/tidy3d/components/medium.py @@ -784,7 +784,7 @@ def sigma_model(self, freq: float) -> complex: @cached_property def is_isotropic_pec(self): """Whether all components are PEC.""" - return any(self.is_comp_pec(i) for i in range(3)) + return all(self.is_comp_pec(i) for i in range(3)) def is_comp_pec(self, comp: Axis): """Whether the component is a PEC."""