Skip to content

Commit

Permalink
Fix istropic_pec checking
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliangjin2021 committed Nov 8, 2023
1 parent 1524eae commit 4219c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidy3d/components/medium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 4219c24

Please sign in to comment.