-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnivariateSpline.__call__ should pass all relevant args through to splev #3557
Comments
That would indeed make sense. |
I made this change and here is the diff: https://github.com/Jacobcvt12/scipy/compare/UnivariateSpline I haven't made any contributions to SciPy before, so if there's anything I need to add/change before making a Pull Request, let me know. |
You can always update the PR after submitting it, but you'll need to bring the docstring up to the standard (headings and what not). |
But that looks like exactly what is needed! |
Hi @jacobcvt12, adding a regression test in Another minor thing: you may want to edit the commit message (with |
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Added test to scipy/interpolate/tests/test_fitpack2.py. See ticket 3557. closes scipygh-3557
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Parameter ext can be passed via __init__ or __call__. Added test to scipy/interpolate/tests/test_fitpack2.py. Tests if UnivariateSpline call equals x ** 3 for out of range x and extrapolation modes 0 and 1. See ticket 3557. closes scipygh-3557
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Parameter ext can be passed via __init__ or __call__. Added test to scipy/interpolate/tests/test_fitpack2.py. Tests if UnivariateSpline call equals x ** 3 for out of range x and extrapolation modes 0 and 1. Modify _from_tck, derivative, and antiderivative methods to use ext parameter. __init__ of LSQUnivariateSpline and InterpolatedUnivariateSpline now accept ext. See ticket 3557. closes scipygh-3557
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Added test to scipy/interpolate/tests/test_fitpack2.py. See ticket 3557. closes scipygh-3557
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Parameter ext can be passed via __init__ or __call__. Added test to scipy/interpolate/tests/test_fitpack2.py. Tests if UnivariateSpline call equals x ** 3 for out of range x and extrapolation modes 0 and 1. See ticket 3557. closes scipygh-3557
Pass parameter to fitpack.splev to control how to handle out of range evaluations. Parameter ext can be passed via __init__ or __call__. Added test to scipy/interpolate/tests/test_fitpack2.py. Tests if UnivariateSpline call equals x ** 3 for out of range x and extrapolation modes 0 and 1. Modify _from_tck, derivative, and antiderivative methods to use ext parameter. __init__ of LSQUnivariateSpline and InterpolatedUnivariateSpline now accept ext. See ticket 3557. closes scipygh-3557
fitpack.splev(...)
takes the optional argumentext
which dictates how to handle out of range evaluations.UnivariateSpline.__call__()
(and subclasses that overload__call__
, if any) should passext
through.https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack2.py#L231
I'd patch this now as it should be an easy one, I just don't have time to fight scipy to install from source atm.
The text was updated successfully, but these errors were encountered: