From 154d0f82ad967cc1e0c9a7f6d8900cdc6c1c7d0b Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Sat, 23 Jul 2022 18:07:09 +0200 Subject: [PATCH] fix small bug in bcf fitting --- hopsflow/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hopsflow/util.py b/hopsflow/util.py index f427dfc..6fc305f 100644 --- a/hopsflow/util.py +++ b/hopsflow/util.py @@ -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(