From 2a687571c65043627e895cbfda664e79b76f9163 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 13 Aug 2024 11:15:44 +0300 Subject: [PATCH] adjusted tolerances, with little to no effect on results --- fitter.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fitter.py b/fitter.py index 0484c9a..deed0eb 100644 --- a/fitter.py +++ b/fitter.py @@ -118,7 +118,15 @@ class Fitter: (10, 100, 100, 100, 10, 10), ) - res = least_squares(self.cost_func, init_parameters, bounds=bounds, xtol=1e-10) + res = least_squares( + self.cost_func, + init_parameters, + bounds=bounds, + xtol=1e-10, + ftol=1e-12, + verbose=2 + ) + print() print(" Parameters: [gGaL, ECal, K_pc_half, tau_xfer, tau_RC, offset]") print(" Initial:", init_parameters.tolist())