-
Notifications
You must be signed in to change notification settings - Fork 24
new polynomial_fit module
#145
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
Conversation
…ynomial_fit, leaving method stubs behind so everything is backwards compatible. The tests still pass without modification, importing from the old places.
… changed name of the general finite_difference function to be finitediff so it doesn't collide with the module name, updated the basic usage notebook to be more in line with the new structure, reran everything
| evaluate | ||
| ======== | ||
|
|
||
| .. currentmodule:: pynumdiff.utils.evaluate |
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.
This is redundant with automobile.
| from warnings import warn | ||
|
|
||
| from pynumdiff.finite_difference import first_order as finite_difference | ||
| from pynumdiff.finite_difference import second_order as finite_difference |
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.
A last case where the former-first-order-which-was-actually-second-order was still being imported as first order, which is now properly first order. I haven't been checking on lineardiff as closely, so this slipped through.
| scipy.signal.savgol_filter. The Savitzky-Golay is very similar to the sliding polynomial fit, | ||
| but slightly noisier, and much faster. | ||
| def savgoldiff(*args, **kwargs): | ||
| warn("`savgoldiff` has moved to `polynomial_fit.savgoldiff` and will be removed from " |
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.
This is just a common pattern to make the functions still importable from the old place, for backwards compatibility.
moved
splinediff,polydiff, andsavgoldiffto a new module calledpolynomial_fit, leaving method stubs behind so everything is backwards compatible. The tests still pass without modification, importing from the old places.This addresses the lion's share of #138.