Skip to content

Commit

Permalink
Merge pull request #260 from yaugenst/fix_validate_medium
Browse files Browse the repository at this point in the history
Check for AbstractMedium instead of Medium in validator
  • Loading branch information
joamatab authored Dec 1, 2023
2 parents 23c769e + 78574a7 commit 72f8f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gplugins/tidy3d/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
def validate_medium(v):
# Check if the input is an instance of td.Medium
assert isinstance(
v, td.Medium
), f"Input should be an instance of {td.Medium}, but got {type(v)} instead"
v, td.AbstractMedium
), f"Input should be a tidy3d medium, but got {type(v)} instead"
return v


Expand Down

0 comments on commit 72f8f19

Please sign in to comment.