Compare commits
No commits in common. "06a2b217d49a194c52d9f801da61783644c19f82" and "a2bb97fe22c9266e519b057da81ee785a5050a21" have entirely different histories.
06a2b217d4
...
a2bb97fe22
11
fitter.py
11
fitter.py
@ -100,7 +100,6 @@ class Fitter:
|
||||
def optimize(self, init_parameters=None):
|
||||
t0 = time.time()
|
||||
self.iteration = 0
|
||||
|
||||
if init_parameters is None:
|
||||
m = self.model()
|
||||
K_pc_half = m.K_pc_half
|
||||
@ -119,15 +118,7 @@ class Fitter:
|
||||
(10, 100, 100, 100, 10, 10),
|
||||
)
|
||||
|
||||
res = least_squares(
|
||||
self.cost_func,
|
||||
init_parameters,
|
||||
bounds=bounds,
|
||||
xtol=1e-10,
|
||||
ftol=1e-12,
|
||||
verbose=2,
|
||||
)
|
||||
|
||||
res = least_squares(self.cost_func, init_parameters, bounds=bounds, xtol=1e-10)
|
||||
print()
|
||||
print(" Parameters: [gGaL, ECal, K_pc_half, tau_xfer, tau_RC, offset]")
|
||||
print(" Initial:", init_parameters.tolist())
|
||||
|
Loading…
Reference in New Issue
Block a user