Skip to content

Commit

Permalink
Ensure check argument is passed through correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
f0uriest committed Mar 16, 2024
1 parent 3750bc2 commit 55fa742
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interpax/_ppoly.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from jax import jit

from ._coefs import A_CUBIC
from ._spline import approx_df
from ._fd_derivs import approx_df
from .utils import asarray_inexact, errorif


Expand Down Expand Up @@ -562,7 +562,7 @@ def __init__(
# So we roll two of them.
c = jnp.moveaxis(c, 0, axis + 1) # (m, ..., k)
c = jnp.moveaxis(c, 0, axis + 1) # (..., k, m, ...)
super().__init__(c, x, extrapolate=extrapolate, axis=axis)
super().__init__(c, x, extrapolate=extrapolate, axis=axis, check=check)


class PchipInterpolator(CubicHermiteSpline):
Expand Down Expand Up @@ -645,7 +645,7 @@ def __init__(
):
x, _, y, axis, _ = prepare_input(x, y, axis, check=check)
dydx = approx_df(x, y, "monotonic", axis=axis)
super().__init__(x, y, dydx, axis=axis, extrapolate=extrapolate)
super().__init__(x, y, dydx, axis=axis, extrapolate=extrapolate, check=check)


class Akima1DInterpolator(CubicHermiteSpline):
Expand Down Expand Up @@ -703,7 +703,7 @@ def __init__(
):
x, _, y, axis, _ = prepare_input(x, y, axis, check=check)
t = approx_df(x, y, method="akima", axis=axis)
super().__init__(x, y, t, axis=axis, extrapolate=extrapolate)
super().__init__(x, y, t, axis=axis, extrapolate=extrapolate, check=check)


class CubicSpline(CubicHermiteSpline):
Expand Down Expand Up @@ -802,4 +802,4 @@ def __init__(
):
x, _, y, axis, _ = prepare_input(x, y, axis, check=check)
df = approx_df(x, y, "cubic2", axis, bc_type=bc_type)
super().__init__(x, y, df, axis=axis, extrapolate=extrapolate)
super().__init__(x, y, df, axis=axis, extrapolate=extrapolate, check=check)

0 comments on commit 55fa742

Please sign in to comment.