Skip to content

Commit 9a59b60

Browse files
fix: mypy issue with different types (#198)
1 parent 2da7cfd commit 9a59b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arviz_stats/loo/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ def gradient(weights):
162162
{"type": "ineq", "fun": np.sum},
163163
]
164164

165-
weights = minimize(
165+
minimize_result = minimize(
166166
fun=log_score, x0=theta, jac=gradient, bounds=bounds, constraints=constraints
167167
)
168168

169-
weights = w_fuller(weights["x"])
169+
weights = w_fuller(minimize_result["x"])
170170

171171
elif method.lower() == "bb-pseudo-bma":
172172
b_samples = 1000

0 commit comments

Comments
 (0)