#2229 default linear interp - #2258
Conversation
valentinsulzer
left a comment
There was a problem hiding this comment.
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.
so the default when creating an interpolant is "linear", but the default when using data is "cubic"?
There was a problem hiding this comment.
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 docsand then$ make clean; make htmlYou can run all three at once, using
$ python run-tests.py --quick.Further checks: