Skip to content

add mass 1 constraint to prior files

Colm Talbot requested to merge colm.talbot/bilby_pipe:prior-constraint into master

The conversion to flat in component masses doesn't work with the default priors as we haven't specified constraints on mass_1.

This just adds those.

KeyError                                  Traceback (most recent call last)
~/.conda/envs/bilby/lib/python3.7/site-packages/cli_bilby/bilby_result.py in <module>
      1 reweighted_result = bilby.gw.prior.convert_to_flat_in_component_mass_prior(
----> 2     result
      3 )
~/.conda/envs/bilby/lib/python3.7/site-packages/bilby/gw/prior.py in convert_to_flat_in_component_mass_prior(result, fraction)
     63         "mass_ratio", latex_label=priors["mass_ratio"].latex_label)
     64     priors["mass_1"] = Uniform(
---> 65         priors["mass_1"].minimum, priors["mass_1"].maximum, "mass_1",
     66         latex_label=priors["mass_1"].latex_label, unit="$M_{\odot}$")

Merge request reports

Loading