gwpopulation_pipe.common_format.read_common_format

read_common_format(filename, data_format='numpy')[source]

Read a posterior file in the common format

Parameters:
filename: str

The path to the file to read.

data_format: str

The format to return the data in, can be either numpy or pandas.

Returns:
output: [np.ndarray, pd.DataFrame]

The posterior in the requested format.

events: list

The event names.