From 2475073d25323f1c007f9c045f9efba3bef206c9 Mon Sep 17 00:00:00 2001 From: Tyler Pauly Date: Wed, 21 Aug 2024 16:15:21 -0400 Subject: [PATCH] WIP np2.0 testing --- jwst/coron/imageregistration.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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",