Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Nov 28, 2023
1 parent 093ef3f commit 86bee62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jax_galsim/interpolant.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ def __str__(self):
# this is a pure function and we apply JIT ahead of time since this
# one is pretty slow
@jax.jit
def _xval(n, conserve_dc, _K, x):
def _xval(x, n, conserve_dc, _K):
x = jnp.abs(x)

def _low(x, n):
Expand Down Expand Up @@ -1533,7 +1533,7 @@ def _no_dcval(val, x, n, _K):
)

def _xval_noraise(self, x):
return Lanczos._xval(self._n, self._conserve_dc, self._K_arr, x)
return Lanczos._xval(x, self._n, self._conserve_dc, self._K_arr)

def _raw_uval(u, n):
# this function is used in the init and so was causing a recursion depth error
Expand Down

0 comments on commit 86bee62

Please sign in to comment.