gwpopulation_pipe.data_collection.load_all_events

load_all_events(args, save_meta_data=True, ignore=None)[source]

Load posteriors for some/all events.

Parameters:
args: argparse.Namespace

Namespace containing the needed arguments, these are: - sample_regex: A dictionary of regex strings to search for the posterior files. - preferred_labels: A list of preferred labels to search for in the posterior files. - parameters: A list of parameters to extract from the posteriors. - mass_prior: The mass prior used in initial sampling. - distance_prior: The distance prior used in initial sampling. - spin_prior: The spin prior used in initial sampling. - max_redshift: The maximum redshift allowed in the sample.

save_meta_data: bool

Whether to write meta data about the loaded results to plain-text files.

ignore: list

List of strings to ignore in the file names to filter unwanted events.

Returns:
posteriors: dict

Dictionary of pd.DataFrame posteriors.