Skip to content

Commit

Permalink
only compute lya damping above zmin.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Oct 8, 2024
1 parent e6af39a commit 2f0588b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prospect/models/sedmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,10 @@ def add_dla(self, wave_rest, spec):
return spec

def add_damping_wing(self, wave_rest, spec):
if np.any(self.params.get("igm_damping", False)):
zmin = 5.0
if (self._zred > zmin) & np.any(self.params.get("igm_damping", False)):
x_HI = self.params.get("igm_factor", 1.0)
tau = tau_damping(wave_rest, self._zred, x_HI, cosmo=cosmo)
tau = tau_damping(wave_rest, self._zred, x_HI, zmin=zmin, cosmo=cosmo)
spec *= np.exp(-tau)
return spec

Expand Down

0 comments on commit 2f0588b

Please sign in to comment.