gwpopulation_pipe.data_collection

Functions for collecting input samples from a range of sources and computing the fiducial prior for the appropriate parameters.

The module provides the gwpopulation_pipe_collection 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

aligned_spin_prior(spin)

The standard prior for aligned spin assuming the spin prior extends to maximal.

convert_arg_to_dict(arg)

Convert a string argument to a dictionary.

euclidean_distance_prior(samples)

Evaluate the redshift prior assuming a Euclidean universe.

evaluate_prior(posts, args, dataset)

Evaluate the prior distribution for the input posteriors.

gather_posteriors(args[, save_meta_data])

Load in posteriors from files according to the command-line arguments.

load_all_events(args[, save_meta_data, ignore])

Load posteriors for some/all events.

load_meta_file_from_hdf5(filename, labels)

Load the posterior from a hdf5 PESummary file.

load_meta_file_from_json(filename, labels)

Load the posterior from a json PESummary file.

load_posterior_from_meta_file(filename[, labels])

Load a posterior from a PESummary meta file.

load_samples_from_csv(filename, *args, **kwargs)

Load posterior samples from a csd file.

main()

plot_summary(posteriors, events, args)

Plot a summary of the posteriors for each parameter.

primary_mass_to_chirp_mass_jacobian(samples)

Compute the Jacobian for the primary mass to chirp mass transformation.

replace_keys(posts)

Map the keys from legacy names to the GWPopulation standards.

resolve_arguments(args)

  • Make sure there are no incompatible arguments.