OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Deprecated usage of `scipy.optimize.optimize import OptimizeResult`

Open vprusso opened this issue 3 years ago • 0 comments

In files hartree_fock_test.py and hartree_fock.py the import pattern of

from scipy.optimize.optimize import OptimizeResult

yields the following deprecation warning:

DeprecationWarning: Please use `OptimizeResult` from the `scipy.optimize` namespace, the `scipy.optimize.optimize` namespace is deprecated.

The fix for this should simply be to alter from scipy.optimize.optimize import OptimizeResult to from scipy.optimize import OptimizeResult in both the hartree_fock.py and hartee_fock_test.py files to eliminate this warning.

vprusso avatar Aug 17 '22 14:08 vprusso