From 3b8b80bfe152277d72b4d58290a58155f6618350 Mon Sep 17 00:00:00 2001 From: Emily Bregou Date: Mon, 9 Jun 2025 14:01:09 -0500 Subject: [PATCH 1/2] Update UVLFs.py This section of the code is made to apply dust recursively to the UVLF until convergence is reached. The bug made it such that dust would only be applied once (since currMUV2 would be equal to currMUV by definition). This branch fixes the bug and ensures the intended behavior of this process. --- zeus21/UVLFs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeus21/UVLFs.py b/zeus21/UVLFs.py index 3637067..37fedcc 100644 --- a/zeus21/UVLFs.py +++ b/zeus21/UVLFs.py @@ -68,8 +68,8 @@ def UVLF_binned(Astro_Parameters,Cosmo_Parameters,HMF_interpolator, zcenter, zwi if(DUST_FLAG==True): currMUV2 = np.ones_like(currMUV) while(np.sum(np.abs((currMUV2-currMUV)/currMUV)) > 0.02): - currMUV = MUVbarlist + AUV(Astro_Parameters,zcenter,currMUV) currMUV2 = currMUV + currMUV = MUVbarlist + AUV(Astro_Parameters,zcenter,currMUV) MUVcuthi = MUVcenters + MUVwidths/2. From 02bafe6ea58d2d99a89606306f50f0156040a631 Mon Sep 17 00:00:00 2001 From: Emily Bregou Date: Mon, 9 Jun 2025 14:04:10 -0500 Subject: [PATCH 2/2] Update UVLFs.py --- zeus21/UVLFs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zeus21/UVLFs.py b/zeus21/UVLFs.py index 37fedcc..b654c53 100644 --- a/zeus21/UVLFs.py +++ b/zeus21/UVLFs.py @@ -7,6 +7,9 @@ Edited by Hector Afonso G. Cruz JHU - July 2024 + +Bug fix by Emily Bregou +UT Austin - June 2025 """ from . import cosmology