From 6383acb3f1a51f6907e74a3a71bb85bbb1ff23f8 Mon Sep 17 00:00:00 2001 From: Momchil Minkov Date: Wed, 13 Nov 2024 15:03:11 +0100 Subject: [PATCH] Passing kwargs in Lorentz.from_nk --- tidy3d/components/medium.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tidy3d/components/medium.py b/tidy3d/components/medium.py index ac29f31d3..7f29ebb74 100644 --- a/tidy3d/components/medium.py +++ b/tidy3d/components/medium.py @@ -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 ------- @@ -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 ---- @@ -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 ------- @@ -4100,6 +4106,7 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs): coeffs=[ (eps_i, fp, delta_p), ], + **kwargs, ) @@ -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 -------