Skip to content

Commit 9ea7c39

Browse files
authored
Merge pull request #32 from ebregou/bug-UVLF-binned-recursive-dusting
Bug uvlf binned recursive dusting
2 parents 707f0ce + 02bafe6 commit 9ea7c39

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

zeus21/UVLFs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
88
Edited by Hector Afonso G. Cruz
99
JHU - July 2024
10+
11+
Bug fix by Emily Bregou
12+
UT Austin - June 2025
1013
"""
1114

1215
from . import cosmology
@@ -68,8 +71,8 @@ def UVLF_binned(Astro_Parameters,Cosmo_Parameters,HMF_interpolator, zcenter, zwi
6871
if(DUST_FLAG==True):
6972
currMUV2 = np.ones_like(currMUV)
7073
while(np.sum(np.abs((currMUV2-currMUV)/currMUV)) > 0.02):
71-
currMUV = MUVbarlist + AUV(Astro_Parameters,zcenter,currMUV)
7274
currMUV2 = currMUV
75+
currMUV = MUVbarlist + AUV(Astro_Parameters,zcenter,currMUV)
7376

7477

7578
MUVcuthi = MUVcenters + MUVwidths/2.

0 commit comments

Comments
 (0)