From 52e715337ed5c79dc31041f09cb00f24113e2a9f Mon Sep 17 00:00:00 2001 From: unalmis Date: Thu, 8 Aug 2024 22:25:22 -0400 Subject: [PATCH] Use simpler conditional --- desc/equilibrium/equilibrium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desc/equilibrium/equilibrium.py b/desc/equilibrium/equilibrium.py index 60efde70a5..41d205a595 100644 --- a/desc/equilibrium/equilibrium.py +++ b/desc/equilibrium/equilibrium.py @@ -1258,7 +1258,7 @@ def compute_theta_coords( flux_coords, inbasis=("rho", "theta_PEST", "zeta"), outbasis=("rho", "theta", "zeta"), - params=setdefault({"L_lmn": L_lmn}, self.params_dict, L_lmn is not None), + params=self.params_dict if L_lmn is None else {"L_lmn": L_lmn}, tol=tol, maxiter=maxiter, full_output=full_output,