Deprecated code from numpy 2.0 release
stscijgbot-jp opened this issue · comments
stscijgbot-jp commented
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.
stscijgbot-jp commented
Comment by Howard Bushouse on JIRA:
Fixed by #8415