Skip to content

Commit

Permalink
Actually use trapezoid in sed
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Jan 18, 2025
1 parent a423dbb commit 39f6f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubin_sim/phot_utils/sed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 39f6f85

Please sign in to comment.