Skip to content

Commit

Permalink
use poly1d from numpy directly
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Oct 13, 2023
1 parent eee741a commit 4fe83ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poppy/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fe83ef

Please sign in to comment.