Commit 90822830 authored by Colm Talbot's avatar Colm Talbot
Browse files

formatting

parent 0f5c43b9
......@@ -326,33 +326,33 @@ class DataAnalysisInput(Input):
raise ValueError("Unknown likelihood function")
def test_roq_prior_bounds(self, params):
if 'chirp_mass' in self.priors:
if "chirp_mass" in self.priors:
assert (
params['chirpmass-min'] <= self.priors['chirp_mass'].minimum and
params['chirpmass-max'] <= self.priors['chirp_mass'].maximum
params["chirpmass-min"] <= self.priors["chirp_mass"].minimum
and params["chirpmass-max"] <= self.priors["chirp_mass"].maximum
), "Chirp mass bounds exceed ROQ basis range."
if 'mass_ratio' in self.priors:
if "mass_ratio" in self.priors:
assert (
params['q-min'] <= self.priors['mass_ratio'].minimum and
params['q-max'] <= self.priors['mass_ratio'].maximum
params["q-min"] <= self.priors["mass_ratio"].minimum
and params["q-max"] <= self.priors["mass_ratio"].maximum
), "Mass ratio bounds exceed ROQ basis range."
if 'a_1' in self.priors:
if "a_1" in self.priors:
assert (
params['chiL1-max'] <= self.priors['a_1'].maximum
params["chiL1-max"] <= self.priors["a_1"].maximum
), "Primary spin magnitude bounds exceed ROQ basis range."
if 'a_2' in self.priors:
if "a_2" in self.priors:
assert (
params['chiL2-max'] <= self.priors['a_2'].maximum
params["chiL2-max"] <= self.priors["a_2"].maximum
), "Secondary spin magnitude bounds exceed ROQ basis range."
if 'chi_1' in self.priors:
if "chi_1" in self.priors:
assert (
params['chiL1-min'] <= self.priors['chi_1'].minimum and
params['chiL1-max'] <= self.priors['chi_1'].maximum
params["chiL1-min"] <= self.priors["chi_1"].minimum
and params["chiL1-max"] <= self.priors["chi_1"].maximum
), "Primary spin bounds exceed ROQ basis range."
if 'chi_2' in self.priors:
if "chi_2" in self.priors:
assert (
params['chiL2-min'] <= self.priors['chi_2'].minimum and
params['chiL2-max'] <= self.priors['chi_2'].maximum
params["chiL2-min"] <= self.priors["chi_2"].minimum
and params["chiL2-max"] <= self.priors["chi_2"].maximum
), "Secondary spin bounds exceed ROQ basis range."
@property
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment