From 15c58933d4b49637f47a7c1cf4fe5dbafe3b2dce Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 27 Sep 2023 15:11:21 -0400 Subject: [PATCH] use poly1d from numpy directly --- poppy/optics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppy/optics.py b/poppy/optics.py index 66ffd009..06771549 100644 --- a/poppy/optics.py +++ b/poppy/optics.py @@ -566,7 +566,7 @@ def get_transmission(self, wave): else: raise NotImplemented("No defined NIRCam wedge BLC mask for that wavelength? ") - sigmas = scipy.poly1d(polyfitcoeffs)(scalefact) + sigmas = numpy.poly1d(polyfitcoeffs)(scalefact) sigmar = sigmas * np.abs(y) sigmar.clip(np.finfo(sigmar.dtype).tiny, out=sigmar) # avoid divide by zero -> NaNs