-
-
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
DOC: improvement in scipy.interpolate.splprep #7073
Conversation
scipy/interpolate/fitpack.py
Outdated
@@ -110,6 +110,7 @@ def splprep(x, w=None, u=None, ub=None, ue=None, k=3, task=0, s=None, t=None, | |||
----- | |||
See `splev` for evaluation of the spline and its derivatives. | |||
The number of dimensions N must be smaller than 11. | |||
Splprep pads zeros at the end which is a cross-link to BSpline as BSpline does not require zero-padding. |
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.
I don't think this sentence clarifies much.
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.
Then what should be added , I mean what should I focus upon ?
@@ -110,6 +110,8 @@ def splprep(x, w=None, u=None, ub=None, ue=None, k=3, task=0, s=None, t=None, | |||
----- | |||
See `splev` for evaluation of the spline and its derivatives. | |||
The number of dimensions N must be smaller than 11. | |||
The c array retruned consists of k+1 zeros at the end | |||
while BSpline does not require zero-padding. |
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.
Could be useful to contrast it to splrep
(does it zero-pad?)
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.
Ok, so should I include the that splrep does not zero-pad also in the docstring?
Thank you @ashwinpathak20 , your commits are squashed and merged in gh-7678. Your authorship is preserved :-) |
Please look at my changes applied in accordance with the issue #6618 in scipy.interpolate.splprep.