refactor!: Deprecated fit functions standard_fit, odr_fit and prior_fit

removed.
This commit is contained in:
Fabian Joswig 2022-02-02 10:15:39 +00:00
parent 952c7acef5
commit 16a997aa90

View file

@ -292,11 +292,6 @@ def total_least_squares(x, y, func, silent=False, **kwargs):
return output
def prior_fit(x, y, func, priors, silent=False, **kwargs):
warnings.warn("prior_fit renamed to least_squares", DeprecationWarning)
return least_squares(x, y, func, priors=priors, silent=silent, **kwargs)
def _prior_fit(x, y, func, priors, silent=False, **kwargs):
output = Fit_result()
@ -415,11 +410,6 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
return output
def standard_fit(x, y, func, silent=False, **kwargs):
warnings.warn("standard_fit renamed to least_squares", DeprecationWarning)
return least_squares(x, y, func, silent=silent, **kwargs)
def _standard_fit(x, y, func, silent=False, **kwargs):
output = Fit_result()
@ -583,11 +573,6 @@ def _standard_fit(x, y, func, silent=False, **kwargs):
return output
def odr_fit(x, y, func, silent=False, **kwargs):
warnings.warn("odr_fit renamed to total_least_squares", DeprecationWarning)
return total_least_squares(x, y, func, silent=silent, **kwargs)
def fit_lin(x, y, **kwargs):
"""Performs a linear fit to y = n + m * x and returns two Obs n, m.