Moving u_c to be a parameter, that way eps has clean signature

This commit is contained in:
2020-07-13 13:43:46 -05:00
parent 169f9c8106
commit a1d240f586
2 changed files with 10 additions and 8 deletions

View File

@@ -36,9 +36,9 @@ class NamDielectricCoefficients(object):
self.d = d
self.u_l = np.real((-self.c + 1j * self.d) / (-self.a + 1j * self.b))
def eps(self):
def eps(self, u_c: float):
def piecewise_eps(u: float, u_c: float):
def piecewise_eps(u: float):
# todo add check for u_c vs u_l
if u < self.u_l:
return -self.a + 1j * self.b