formatting

This commit is contained in:
ralf 2024-08-13 11:28:05 +03:00
parent 2a687571c6
commit 06a2b217d4

View File

@ -100,6 +100,7 @@ class Fitter:
def optimize(self, init_parameters=None): def optimize(self, init_parameters=None):
t0 = time.time() t0 = time.time()
self.iteration = 0 self.iteration = 0
if init_parameters is None: if init_parameters is None:
m = self.model() m = self.model()
K_pc_half = m.K_pc_half K_pc_half = m.K_pc_half
@ -119,12 +120,12 @@ class Fitter:
) )
res = least_squares( res = least_squares(
self.cost_func, self.cost_func,
init_parameters, init_parameters,
bounds=bounds, bounds=bounds,
xtol=1e-10, xtol=1e-10,
ftol=1e-12, ftol=1e-12,
verbose=2 verbose=2,
) )
print() print()