Skip to content

Commit

Permalink
Merge pull request #206 from kdotom/patch-1
Browse files Browse the repository at this point in the history
Update get_material.py
  • Loading branch information
joamatab authored Oct 20, 2023
2 parents 59cd8f1 + 94e8dc9 commit 76b611a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gplugins/gmeep/get_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def get_material(
n=np.real(meep_name), k=np.imag(meep_name), wavelength=wavelength
),
)
elif isinstance(meep_name, mp.geom.Medium):
# if meep medium is directly input, return meep medium
return meep_name

material = getattr(mat, meep_name)

Expand Down

0 comments on commit 76b611a

Please sign in to comment.