Skip to content

Commit

Permalink
fixing variable name confusion in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Dec 11, 2023
1 parent 794901f commit 3bb544f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/beast_priors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,17 @@ Plot showing examples of the possible distance prior models with the parameters
# met grid with linear spacing
dists = np.arange(50., 70, 0.1) * 1e3

met_prior_models = [
distance_prior_models = [
{"name": "flat"},
{"name": "absexponential",
"dist0": 60.0*u.kpc,
"tau": 5.*u.kpc,
"amp": 1.0}]
"amp": 1.0}
]

for mp_mod in met_prior_models:
pmod = PriorDistanceModel(mp_mod)
ax.plot(dists, pmod(dists), label=mp_mod["name"])
for dp_mod in distance_prior_models:
pmod = PriorDistanceModel(dp_mod)
ax.plot(dists, pmod(dists), label=dp_mod["name"])

ax.set_ylabel("probability")
ax.set_xlabel("distance")
Expand Down

0 comments on commit 3bb544f

Please sign in to comment.