Skip to content

Commit 001f5d6

Browse files
authored
Use 1D array in scipy.optimize.minimize (#111)
1 parent 19af399 commit 001f5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymare/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def q_profile(y, v, X, alpha=0.05):
109109
ub_start = 2 * DerSimonianLaird().fit(y, v, X).params_["tau2"]
110110

111111
lb = minimize(lambda x: (q_gen(*args, x) - l_crit) ** 2, [0], bounds=bds).x[0]
112-
ub = minimize(lambda x: (q_gen(*args, x) - u_crit) ** 2, [ub_start], bounds=bds).x[0]
112+
ub = minimize(lambda x: (q_gen(*args, x) - u_crit) ** 2, ub_start, bounds=bds).x[0]
113113
return {"ci_l": lb, "ci_u": ub}
114114

115115

0 commit comments

Comments
 (0)