From a073c6ee25a8ce1779c6ad104bc36000647d5b68 Mon Sep 17 00:00:00 2001 From: Jarron Leisenring Date: Wed, 2 Oct 2024 17:02:53 -0700 Subject: [PATCH] scipy.poly1d deprecated to np.poly1d --- webbpsf_ext/webbpsf_ext_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbpsf_ext/webbpsf_ext_core.py b/webbpsf_ext/webbpsf_ext_core.py index 7dd83af..4c5a1ce 100644 --- a/webbpsf_ext/webbpsf_ext_core.py +++ b/webbpsf_ext/webbpsf_ext_core.py @@ -4901,7 +4901,7 @@ def nrc_mask_trans(image_mask, x, y): else: raise NotImplementedError(f"{image_mask} not a valid name for NIRCam wedge occulter") - sigmas = scipy.poly1d(polyfitcoeffs)(scalefact) + sigmas = np.poly1d(polyfitcoeffs)(scalefact) sigmar = sigmas * np.abs(y) # clip sigma: The minimum is to avoid divide by zero