gwpopulation_pipe.common_format

Functions

create_parser()

data_frame_to_sarray(data_frame)

Convert a pandas DataFrame object to a numpy structured array.

do_spin_conversion(posterior)

Utility function to convert between beta distribution parameterizations.

main()

read_common_format(filename[, data_format])

Read a posterior file in the common format

rejection_sample_population(model, params, ...)

Rejection sampling for fair_population_draws in popsummary output.

resample_events_per_population_sample(...)

Resample the input posteriors with a fiducial prior to the population informed distribution.

resample_injections_per_population_sample(...)

Resample the input data with a fiducial prior to the population informed distribution.

save_to_common_format(posterior, events, ...)

Save the data to the common hdf5 format.

save_to_popsummary_format(filename, ...)

Saves all data products to a single hdf5 file in popsummary format.