From 16a997aa904372f8e9ff83382cff849ba63c3e0d Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 2 Feb 2022 10:15:39 +0000 Subject: [PATCH] refactor!: Deprecated fit functions standard_fit, odr_fit and prior_fit removed. --- pyerrors/fits.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pyerrors/fits.py b/pyerrors/fits.py index ea51f6f0..599c6eff 100644 --- a/pyerrors/fits.py +++ b/pyerrors/fits.py @@ -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.