Skip to content
Snippets Groups Projects
Commit dfdc3511 authored by Daniel Wysocki's avatar Daniel Wysocki
Browse files

Fixed a bug in the PPD sampler

parent 74d645b0
No related branches found
Tags pop_models_paper_bns_version
1 merge request!13Merging months of changes into master
......@@ -31,7 +31,7 @@ def sample_ppd(
# If ``post_weights`` is None, this is just 1/n_post, otherwise it will be
# proportional to ``post_weights``, but properly normalized to 1.0.
if post_weights is None:
weights = numpy.empty(n_samples, dtype=post_samples.dtype)
weights = numpy.empty(n_post, dtype=post_samples.dtype)
weights[:] = 1.0 / n_post
else:
weights = post_weights / numpy.sum(post_weights)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment