Skip to content
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

DM-23077: Change default behavior for interpolate #187

Merged
merged 1 commit into from Jan 15, 2020

Conversation

SimonKrughoff
Copy link
Contributor

The default was to raise an error if interpolating outside the bounds of the curve. The default now is to clamp to 0. outside the range of the curve.

accepted values.
bounds_error : `bool`, optional
Raise error if interpolating outside the range of x
(default is False)?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put the question mark at the end of the line above and have the default state as a distinct item. Otherwise I keep thinking I'm being asked what the default is. Also add a Raises section to the docstring saying what this exception might be.

The default was to raise an error if interpolating outside
the bounds of the curve.
The default now is to clamp to 0. outside the range of the curve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants