Skip to content

Commit

Permalink
Merge branch 'master' into rc/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
f0uriest authored Aug 31, 2023
2 parents 9bddd54 + 9680907 commit edfe4c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions desc/objectives/_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ def build(self, eq=None, use_jit=True, verbose=1):
eq = eq or self._eq
if self._grid is None:
grid = LinearGrid(
L=eq.L_grid,
M=eq.M_grid,
N=eq.N_grid,
NFP=eq.NFP,
sym=eq.sym,
rho=np.linspace(1 / 5, 1, 5),
axis=False,
)
else:
grid = self._grid
Expand Down Expand Up @@ -296,11 +297,12 @@ def build(self, eq=None, use_jit=True, verbose=1):
eq = eq or self._eq
if self._grid is None:
grid = LinearGrid(
L=eq.L_grid,
M=eq.M_grid,
N=eq.N_grid,
NFP=eq.NFP,
sym=eq.sym,
rho=np.linspace(1 / 5, 1, 5),
axis=False,
)
else:
grid = self._grid
Expand Down
2 changes: 0 additions & 2 deletions tests/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,6 @@ def test_constrained_AL_lsq():

constraints = (
FixBoundaryR(eq=eq, modes=[0, 0, 0]), # fix specified major axis position
FixBoundaryZ(eq=eq), # fix Z shape but not R
FixPressure(eq=eq), # fix pressure profile
FixIota(eq=eq), # fix rotational transform profile
FixPsi(eq=eq), # fix total toroidal magnetic flux
Expand Down Expand Up @@ -917,7 +916,6 @@ def test_constrained_AL_lsq():

@pytest.mark.slow
@pytest.mark.regression
@pytest.mark.xfail
def test_constrained_AL_scalar():
"""Tests that the augmented Lagrangian constrained optimizer does something."""
eq = desc.examples.get("SOLOVEV")
Expand Down

0 comments on commit edfe4c7

Please sign in to comment.