Skip to content

Commit

Permalink
Passing kwargs in Lorentz.from_nk
Browse files Browse the repository at this point in the history
  • Loading branch information
momchil-flex committed Nov 13, 2024
1 parent 9ce1077 commit 6383acb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tidy3d/components/medium.py
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,8 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
Imaginary part of refrative index.
freq : float
Frequency to evaluate permittivity at (Hz).
kwargs: dict
Keyword arguments passed to the medium construction.
Returns
-------
Expand Down Expand Up @@ -2397,6 +2399,8 @@ def from_nk(
interp_method : :class:`.InterpMethod`, optional
Interpolation method to obtain permittivity values that are not supplied
at the Yee grids.
kwargs: dict
Keyword arguments passed to the medium construction.
Note
----
Expand Down Expand Up @@ -4062,6 +4066,8 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
Imaginary part of refrative index.
freq : float
Frequency to evaluate permittivity at (Hz).
kwargs: dict
Keyword arguments passed to the medium construction.
Returns
-------
Expand Down Expand Up @@ -4100,6 +4106,7 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
coeffs=[
(eps_i, fp, delta_p),
],
**kwargs,
)


Expand Down Expand Up @@ -6487,6 +6494,8 @@ def medium_from_nk(n: float, k: float, freq: float, **kwargs) -> Union[Medium, L
Imaginary part of refrative index.
freq : float
Frequency to evaluate permittivity at (Hz).
kwargs: dict
Keyword arguments passed to the medium construction.
Returns
-------
Expand Down

0 comments on commit 6383acb

Please sign in to comment.