Skip to content

Commit

Permalink
Use simpler conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis committed Aug 9, 2024
1 parent d2a4f6e commit 52e7153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desc/equilibrium/equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52e7153

Please sign in to comment.