Skip to content

Commit

Permalink
compare version as int, not str (pyscf#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Jul 9, 2024
1 parent beb7b1b commit 63cdb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/grad/lagrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __call__(self, x):
x /= Adiagd
return x

if scipy.__version__.split('.')[1] >= '14': # scipy 1.14
if int (scipy.__version__.split('.')[1]) >= 14: # scipy 1.14
def _cg(A, b, x0=None, *, tol=1e-05, atol=0.0, maxiter=None, M=None, callback=None):
return sparse_linalg.cg(A, b, x0, rtol=tol, atol=atol, maxiter=maxiter,
M=M, callback=callback)
Expand Down

0 comments on commit 63cdb7c

Please sign in to comment.