gwpopulation_pipe.data_analysis

Functions for running stochastic sampling with Bilby for pre-collected posteriors.

The module provides the gwpopulation_pipe_analysis executable.

In order to use many of the other functions you will need a class that provides various attributes specified in the gwpopulation_pipe parser.

Functions

compute_rate_posterior(posterior, selection)

Compute the rate posterior as a post-processing step.

create_likelihood(args, posteriors, model, ...)

create_parser()

fill_minimum_n_effective(posterior, likelihood)

Compute the minimum per event n effective for each posterior sample.

generate_extra_statistics(posterior, likelihood)

get_sampler_kwargs(args)

load_model(args)

load_prior(args)

load_vt(args)

main()

resample_single_event_posteriors(likelihood, ...)

Resample the single event posteriors to use the population-informed prior.

scale_evidences_by_cut(result, likelihood, ...)

Scale the evidence calculated by dynesty by the fraction of prior samples retained after convergence cuts.

sighandler(signum, frame)

Handler for periodically exiting when running via HTCondor