Skip to content

Commit

Permalink
Fixes issue #797 (#811)
Browse files Browse the repository at this point in the history
Resolves the deprecated import of OptimizeResult from the scipy library.

Co-authored-by: Fionn Malone <fmalone@google.com>
  • Loading branch information
ica574 and fdmalone committed Apr 21, 2023
1 parent c5d35f4 commit f8305ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openfermion/hamiltonians/hartree_fock.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from itertools import product
import numpy as np
import scipy as sp
from scipy.optimize.optimize import OptimizeResult
from scipy.optimize import OptimizeResult
from openfermion.ops.representations import (InteractionOperator,
InteractionRDM,
general_basis_change)
Expand Down
2 changes: 1 addition & 1 deletion src/openfermion/hamiltonians/hartree_fock_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import pytest
import scipy as sp
from scipy.optimize.optimize import OptimizeResult
from scipy.optimize import OptimizeResult
from openfermion.config import DATA_DIRECTORY
from openfermion.chem import MolecularData
from openfermion.ops.representations import (general_basis_change,
Expand Down

0 comments on commit f8305ee

Please sign in to comment.