Skip to content

Commit e8867ca

Browse files
committed
Passing kwargs in Lorentz.from_nk
1 parent 2156051 commit e8867ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tidy3d/components/medium.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,8 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
16251625
Imaginary part of refrative index.
16261626
freq : float
16271627
Frequency to evaluate permittivity at (Hz).
1628+
kwargs: dict
1629+
Keyword arguments passed to the medium construction.
16281630
16291631
Returns
16301632
-------
@@ -2399,6 +2401,8 @@ def from_nk(
23992401
interp_method : :class:`.InterpMethod`, optional
24002402
Interpolation method to obtain permittivity values that are not supplied
24012403
at the Yee grids.
2404+
kwargs: dict
2405+
Keyword arguments passed to the medium construction.
24022406
24032407
Note
24042408
----
@@ -4066,6 +4070,8 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
40664070
Imaginary part of refrative index.
40674071
freq : float
40684072
Frequency to evaluate permittivity at (Hz).
4073+
kwargs: dict
4074+
Keyword arguments passed to the medium construction.
40694075
40704076
Returns
40714077
-------
@@ -4104,6 +4110,7 @@ def from_nk(cls, n: float, k: float, freq: float, **kwargs):
41044110
coeffs=[
41054111
(eps_i, fp, delta_p),
41064112
],
4113+
**kwargs,
41074114
)
41084115

41094116

@@ -6503,6 +6510,8 @@ def medium_from_nk(n: float, k: float, freq: float, **kwargs) -> Union[Medium, L
65036510
Imaginary part of refrative index.
65046511
freq : float
65056512
Frequency to evaluate permittivity at (Hz).
6513+
kwargs: dict
6514+
Keyword arguments passed to the medium construction.
65066515
65076516
Returns
65086517
-------

0 commit comments

Comments
 (0)