Skip to content

Commit

Permalink
Add 'ho_20_low' and 'ho_20_high' FBOT rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Aug 4, 2020
1 parent 21e7886 commit bc7dea8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flarestack/cosmo/rates/fbot_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from flarestack.cosmo.rates.sfr_rates import get_sfr_evolution

local_fbot_rates = {
"ho_20": (7 * 10**-7. / (u.Mpc**3 * u.yr), "https://arxiv.org/abs/2003.01222"),
"ho_20_high": (7. * 10**-7. / (u.Mpc**3 * u.yr), "https://arxiv.org/abs/2003.01222"),
"ho_20_low": (4. * 10**-7. / (u.Mpc**3 * u.yr), "https://arxiv.org/abs/2003.01222"),
}

def get_local_fbot_rate(rate_name=None):
Expand All @@ -17,7 +18,7 @@ def get_local_fbot_rate(rate_name=None):

if rate_name is None:
logging.info("No rate specified. Assuming default rate.")
rate_name = "ho_20"
rate_name = "ho_20_high"

if rate_name not in local_fbot_rates.keys():
raise Exception(f"Rate name '{rate_name}' not recognised. "
Expand Down

0 comments on commit bc7dea8

Please sign in to comment.