Skip to content

Commit

Permalink
scipy.poly1d deprecated to np.poly1d
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Oct 3, 2024
1 parent 61c31ce commit a073c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webbpsf_ext/webbpsf_ext_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a073c6e

Please sign in to comment.