spacetelescope / synphot_refactor

Synthetic photometry using Astropy
http://synphot.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
39 stars 25 forks source link

MNT: NumPy 2.0 compatibility #362

Closed pllim closed 1 year ago

pllim commented 1 year ago

NumPy 2.0 is changing a lot of stuff. I think the most impactful one for this package is the deprecation of np.trapz (https://github.com/numpy/numpy/pull/24445).

        # Deprecated in NumPy 2.0, 2023-08-18
>       warnings.warn(
            "`trapz` is deprecated. Use `scipy.integrate.trapezoid` instead.",
            DeprecationWarning,
            stacklevel=2
        )
E       DeprecationWarning: `trapz` is deprecated. Use `scipy.integrate.trapezoid` instead.

I don't have time to worry about that right now. Maybe when they push an RC out. If I am lucky, maybe they will un-deprecate it when too many people complain.