Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing kwargs in Lorentz.from_nk #2067

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading