From 39f6f851fd8d63c449c38ec8f5722e80aa9a82b1 Mon Sep 17 00:00:00 2001 From: Lynne Jones Date: Fri, 17 Jan 2025 17:25:39 -0800 Subject: [PATCH] Actually use trapezoid in sed --- rubin_sim/phot_utils/sed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rubin_sim/phot_utils/sed.py b/rubin_sim/phot_utils/sed.py index c53821b0..ca1523c0 100644 --- a/rubin_sim/phot_utils/sed.py +++ b/rubin_sim/phot_utils/sed.py @@ -1323,7 +1323,7 @@ def calc_flux(self, bandpass, wavelen=None, fnu=None, fill=numpy.nan): if bandpass.phi is None: bandpass.sb_tophi() # Calculate flux in bandpass and return this value. - flux = numpy.trapz(fnu * bandpass.phi, x=wavelen) + flux = trapezoid(fnu * bandpass.phi, x=wavelen) return flux def calc_mag(self, bandpass, wavelen=None, fnu=None, fill=numpy.nan):