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 Sep 27, 2023
1 parent 8e2d84d commit 15c5893
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)

Check warning on line 569 in poppy/optics.py

View check run for this annotation

Codecov / codecov/patch

poppy/optics.py#L569

Added line #L569 was not covered by tests

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 15c5893

Please sign in to comment.