fix: removes unnecessary None checks
This commit is contained in:
parent
5e830f623e
commit
4d59f9c09c
@ -142,18 +142,7 @@ def get_unapproximated_nam_dielectric(
|
|||||||
params: CalculationParams,
|
params: CalculationParams,
|
||||||
constants: CalculationConstants = CalculationConstants(),
|
constants: CalculationConstants = CalculationConstants(),
|
||||||
):
|
):
|
||||||
if params.omega is None:
|
|
||||||
raise ValueError("omega expected to not be None")
|
|
||||||
if params.v_f is None:
|
|
||||||
raise ValueError("v_f expected to not be None")
|
|
||||||
if params.omega_p is None:
|
|
||||||
raise ValueError("omega_p expected to not be None")
|
|
||||||
if params.tau is None:
|
|
||||||
raise ValueError("tau expected to not be None")
|
|
||||||
if params.t_rel is None:
|
|
||||||
raise ValueError("relative temp expected to not be None")
|
|
||||||
if params.t_c is None:
|
|
||||||
raise ValueError("critical temp expected to not be None")
|
|
||||||
sigma_n = params.omega_p**2 * params.tau / (4 * np.pi)
|
sigma_n = params.omega_p**2 * params.tau / (4 * np.pi)
|
||||||
coeffs = get_nam_dielectric_coefficients(
|
coeffs = get_nam_dielectric_coefficients(
|
||||||
params.omega,
|
params.omega,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user