Skip to content

Commit

Permalink
Fix use of deprecated scipy.minimize api.
Browse files Browse the repository at this point in the history
For scipy>=1.11 x0 must be passed as ndim=1 array. Implicit
raveling of the array was deprecated with 1.11.
  • Loading branch information
Sebastian Kehl committed Feb 12, 2024
1 parent 981c1f1 commit 1a2a05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trimem/mc/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _cb(x):
}
res = minimize(
funcs.fun,
mesh.x,
mesh.x.ravel(),
jac=funcs.grad,
callback=_cb,
method="L-BFGS-B",
Expand Down

0 comments on commit 1a2a05c

Please sign in to comment.