You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
min_MUV=-100.0# essentially no cutoff, since the scatter is large at low masses and can cause numerical issues if we try to integrate over unphysically bright galaxies there. This is just a numerical cutoff, not a physical one, and the exact value doesn't matter much since the scatter is large there anyway.
86
+
else:
87
+
Mstarmax=HMF_interpolator.Mhtab*Cosmo_Parameters.OmegaB/Cosmo_Parameters.OmegaM#max stellar mass in each halo, if all baryons turned to stars
88
+
_tmaxSFR=Astro_Parameters.min_t_formation_Myr*1e6#arbitrary timescale to determine max SFR in yrs
89
+
SFRmax=Mstarmax/ (_tmaxSFR)
90
+
min_MUV=MUV_of_SFR(SFRmax, Astro_Parameters._kappaUV) #min MUV in each halo, if all baryons turned to stars at max SFR for 10 Myr. This is a very rough cutoff to avoid unphysically small MUVs (bright galaxies) at low masses, which can cause numerical issues since the scatter is large there. It's not a physical cutoff, just a numerical one. The exact value doesn't matter much since the scatter is large there anyway, but it prevents the code from trying to integrate over unphysically bright galaxies in low-mass halos.
weights=weights_unnormalized/ (0.5*(1-erf(x_min)+1e-6))[:,None] # Renormalize distributions based on the portion cut off by min_MUV
97
+
98
+
### Standard as usual, no cuts:
99
+
# 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
0 commit comments