From bd6cefbfb20b3f51fdb2b369871835262890941a Mon Sep 17 00:00:00 2001 From: Joren Hammudoglu Date: Sat, 13 Sep 2025 04:44:18 +0200 Subject: [PATCH] fix minor typing issue in `stats.stats.compare` --- arviz/stats/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arviz/stats/stats.py b/arviz/stats/stats.py index 46ce32f396..23e32b49b3 100644 --- a/arviz/stats/stats.py +++ b/arviz/stats/stats.py @@ -251,11 +251,11 @@ def gradient(weights): {"type": "ineq", "fun": np.sum}, ] - weights = minimize( + minimize_result = minimize( fun=log_score, x0=theta, jac=gradient, bounds=bounds, constraints=constraints ) - weights = w_fuller(weights["x"]) + weights = w_fuller(minimize_result["x"]) ses = ics["se"] elif method.lower() == "bb-pseudo-bma":