spacetelescope / jwst

Python library for science observations from the James Webb Space Telescope

Home Page:https://jwst-pipeline.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated code from numpy 2.0 release

stscijgbot-jp opened this issue · comments

Issue JP-3589 was created on JIRA by Ned Molter:

Prompted by the numpy 2.0 release notes, there are a few remaining instances of deprecated numpy functions in the JWST repo.  These are:

  • 3 instances of np.mat() in the new AMI code, which should be changed to np.asmatrix(). These are removed as of numpy 2.0 and will cause errors.
  • 1 instance of np.trapz() in the ATOCA code, which should be changed to np.trapezoid() or scipy.integrate.trapezoid(). This is newly deprecated in numpy 2.0 and will only raise a deprecation warning for now.

Comment by Howard Bushouse on JIRA:

Fixed by #8415