Skip to content

Commit

Permalink
fix zeta phi problem causing nans
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Oct 20, 2024
1 parent c40eaf1 commit b7675e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_map_coordinates_derivative():
def foo(params, in_coords):
out = eq.map_coordinates(
in_coords,
("rho", "alpha", "zeta"), # for this test, zeta==phi
("rho", "alpha", "phi"),
("rho", "theta_PEST", "zeta"),
np.array([rho, theta, zeta]).T,
params,
Expand All @@ -123,9 +123,9 @@ def foo(params, in_coords):
# this time _map_clebsch_coordinates is called inside map_coordinates
@jax.jit
def foo(params, in_coords):
out, _ = eq.map_coordinates(
out, (_, _) = eq.map_coordinates(
in_coords,
("rho", "alpha", "zeta"), # for this test, zeta==phi
("rho", "alpha", "phi"),
("rho", "theta", "zeta"),
np.array([rho, theta, zeta]).T,
params,
Expand Down

0 comments on commit b7675e6

Please sign in to comment.