get_bpp#
- cogsworth.interop.compas.file.get_bpp(filename)[source]#
Create a COSMIC-like bpp table from a COMPAS output file
This function combines several different COMPAS output tables to create a bpp-like table that contains rows for each significant stellar evolution event in the life of each binary system.
The function currently implements the following events: - Initial conditions and final state (from BSE_System_Parameters) - Changes in stellar type (from BSE_Switch_Log) - Start and end of mass transfer episodes (from BSE_RLOF) - Start and end of common-envelope events (from BSE_Common_Envelopes) - Supernova events (from BSE_Supernovae)
This code is built upon work by Eugene Shang.
- Parameters:
- filenamestr
Path to the COMPAS output file in HDF5 format.
- Returns:
- bpppandas.DataFrame
A DataFrame containing the bpp table with rows for each stellar evolution event.