Skip to content

Commit 1d37a33

Browse files
committed
Update UVLFs.py
and fix trapz to trapezoid...
1 parent 84df2d1 commit 1d37a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zeus21/UVLFs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def UVLF_binned(Astro_Parameters,Cosmo_Parameters,HMF_interpolator, zcenter, zwi
100100
### Standard as usual, no cuts:
101101
# weights = (erf(xhi) - erf(xlo)).T/(2.0 * MUVwidths) #comment to myself, this 2 in denominator is correct here, nothing to do with the MUVwidths/2 a few lines above
102102

103-
UVLF_filtered = np.trapz(weights.T * HMFcurr, HMF_interpolator.Mhtab, axis=-1)
103+
UVLF_filtered = np.trapezoid(weights.T * HMFcurr, HMF_interpolator.Mhtab, axis=-1)
104104

105105

106106
if(Astro_Parameters.USE_POPIII==False):

0 commit comments

Comments
 (0)