Commit f10eb599 authored by Guang's avatar Guang
Browse files

bug fixed for igm_transmission

parent 0abcd0de
......@@ -134,7 +134,9 @@ def igm_transmission(wavelength, redshift):
igm_transmission = np.exp(-tau_taun-tau_l_igm-tau_l_lls) * weight
# Reset the transmission for X-ray (E>0.4 keV) to 1
igm_transmission[np.where(wavelength <= lam_xray_max)] = 1.
igm_transmission[np.where( \
(wavelength/(1+redshift)) <= lam_xray_max \
)] = 1.
return igm_transmission
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment