Skip to content

Commit

Permalink
Fix kwargs dict retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwu4 committed Dec 18, 2024
1 parent d6bea2b commit 8b403a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/simsopt/solve/permanent_magnet_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ def relax_and_split(pm_opt, m0=None, **kwargs):

# set the nonconvex step in the algorithm
reg_rs = 0.0
nu = kwargs.pop("nu", 1e100)
reg_l0 = kwargs.pop("reg_l0", 0.0)
reg_l1 = kwargs.pop("reg_l1", 0.0)
nu = kwargs.get("nu", 1e100)
reg_l0 = kwargs.get("reg_l0", 0.0)
reg_l1 = kwargs.get("reg_l1", 0.0)

max_iter_RS = kwargs.pop('max_iter_RS', 1)
epsilon_RS = kwargs.pop('epsilon_RS', 1e-3)

Expand Down

0 comments on commit 8b403a2

Please sign in to comment.