Skip to content

Commit

Permalink
Resolves #1008
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis committed Apr 30, 2024
1 parent 8b2fd29 commit 1d97cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions desc/equilibrium/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def periodic(x):
# do surface average to get iota once
if "iota" in profiles and profiles["iota"] is None:
profiles["iota"] = eq.get_profile("iota", params=params)
params["i_l"] = profiles["iota"].params

Check warning on line 113 in desc/equilibrium/coords.py

View check run for this annotation

Codecov / codecov/patch

desc/equilibrium/coords.py#L113

Added line #L113 was not covered by tests

@functools.partial(jit, static_argnums=1)
def compute(y, basis):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_compute_theta_coords():
def test_map_coordinates():
"""Test root finding for (rho,theta,zeta) for common use cases."""
# finding coordinates along a single field line
eq = get("W7-X")
eq = get("DSHAPE_current")
eq.change_resolution(3, 3, 3, 6, 6, 6)
n = 100
coords = np.array([np.ones(n), np.zeros(n), np.linspace(0, 10 * np.pi, n)]).T
Expand Down

0 comments on commit 1d97cab

Please sign in to comment.