gwpopulation_pipe.common_format.save_to_common_format

save_to_common_format(posterior, events, filename)[source]

Save the data to the common hdf5 format.

Parameters:
posterior: [np.ndarray, pd.DataFrame]

The posterior to be saved.

events: list

The names of each of the events in the dataset.

filename: str

the output filename