Skip to content

Commit

Permalink
implement omega gamma (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nathanielstarkman@gmail.com>
  • Loading branch information
nstarman committed May 14, 2023
1 parent fe97beb commit 7caacf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosmology/compat/classy/_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def Omega_gamma0(self) -> NDFloating:

def Omega_gamma(self, z: InputT, /) -> NDFloating:
"""Redshift-dependent photon density parameter."""
raise NotImplementedError
return self.Omega_gamma0 * (z + 1.0) ** 4 / self.h_over_h0(z) ** 2

# ----------------------------------------------
# HasCriticalDensity
Expand Down

0 comments on commit 7caacf4

Please sign in to comment.