Skip to content

Commit

Permalink
Correct docstrings in cosmology.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TomLaclavere committed Dec 6, 2024
1 parent c47deb5 commit 6cb3a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_documentation/mycosmo/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def hubble(redshift, cosmo_dict):
H(z) = \sqrt{H_0^2 (\Omega_{m,0}(1+z)^3 + \Omega_{k,0}(1+z)^2 +
\Omega_{\Lambda,0})}
Example
Examples
-------
>>> from mycosmo.cosmology import hubble
>>> cosmo_dict = {"H0": 70, "omega_m_0": 0.3, "omega_k_0": 0.0, "omega_lambda_0": 0.7}
Expand Down Expand Up @@ -87,7 +87,7 @@ def critical_density(redshift, cosmo_dict):
\rho_c(z) = \frac{3H^2(z)}{8\pi G}
Example
Examples
-------
>>> from mycosmo.cosmology import critical_density
>>> cosmo_dict = {"H0": 70, "omega_m_0": 0.3, "omega_k_0": 0.0, "omega_lambda_0": 0.7}
Expand Down

0 comments on commit 6cb3a83

Please sign in to comment.