diff --git a/jwst/coron/imageregistration.py b/jwst/coron/imageregistration.py index 38eb4c068b3..5ff21465aa6 100644 --- a/jwst/coron/imageregistration.py +++ b/jwst/coron/imageregistration.py @@ -40,7 +40,9 @@ def align_fourierLSQ(reference, target, mask=None): init_pars = [0., 0., 1.] results, _ = optimize.leastsq(shift_subtract, init_pars, - args=(reference, target, mask)) + args=(reference, target, mask), + xtol=1E-8, ftol=1E-8) + return results diff --git a/pyproject.toml b/pyproject.toml index ff6b5574724..346ca20ff32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "crds>=11.17.14", "drizzle>=1.15.0", "gwcs>=0.21.0,<0.23.0", - "numpy>=1.22,<2.0", + "numpy>=1.22", "opencv-python-headless>=4.6.0.66", "photutils>=1.5.0", "psutil>=5.7.2",