fix small bug in bcf fitting

This commit is contained in:
Valentin Boettcher 2022-07-23 18:07:09 +02:00
parent 6b00b566b8
commit 154d0f82ad

View file

@ -891,7 +891,8 @@ def fit_α(
max_sol = scipy.optimize.minimize(
lambda t: -np.abs(α(np.array([t])))[0], [0], bounds=((0, np.inf),)
)
max = -max_sol.fun[0]
max = -max_sol.fun
t_at_max = max_sol.x[0]
t_tail = scipy.optimize.newton(