Skip to content

Commit

Permalink
SciPy 1.15 compatibility
Browse files Browse the repository at this point in the history
Some tests were incompatible with the recently release `scipy==1.15`. Fixed here.
  • Loading branch information
dweindl committed Jan 8, 2025
1 parent 20fd9de commit ce17dd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ def arg_fun(x):
}


def rosen_for_sensi(max_sensi_order, integrated=False, x=None):
def rosen_for_sensi(
max_sensi_order, integrated=False, x: np.ndarray | None = None
):
"""Rosenbrock function from scipy.optimize."""
if x is None:
x = [0, 1]
x = np.array([0, 1])

return obj_for_sensi(
so.rosen, so.rosen_der, so.rosen_hess, max_sensi_order, integrated, x
Expand Down

0 comments on commit ce17dd0

Please sign in to comment.