-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
#2229 default linear interp #2258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is "cubic" better than "cubic spline"? Cubic spline is used by scipy https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.CubicSpline.html
I originally changed it as I was going to just pass |
input_data[0], | ||
input_data[-1], | ||
new_children, | ||
interpolator="cubic", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the default when creating an interpolant is "linear", but the default when using data is "cubic"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I didn't like doing this. I think it would be better to use "linear" all the time, but you can't take the derivative. We could switch to using InterpolatedUnivariateSpline for the 1D interpolation and just change the degree, then you can, but it's not smooth anyway.
Codecov Report
@@ Coverage Diff @@
## develop #2258 +/- ##
========================================
Coverage 99.39% 99.39%
========================================
Files 364 364
Lines 19996 19999 +3
========================================
+ Hits 19876 19879 +3
Misses 120 120
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Description
Make the default interpolator linear.
Fixes #2229 #2017
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: