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

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.