gwpopulation_pipe.data_collection.load_posterior_from_meta_file

load_posterior_from_meta_file(filename, labels=None)[source]

Load a posterior from a PESummary meta file. The poseterior samples are expected to follow Bilby naming conventions.

Parameters:
filename: str
labels: list

The labels to search for in the file in order of precedence.

Returns:
posterior: pd.DataFrame
meta_data: dict

Dictionary containing the run label that was loaded.