translate_COSMIC_tables#
- cogsworth.utils.translate_COSMIC_tables(tab, kstars=True, evol_type=True, label_type='short', replace_columns=True)[source]#
Translate COSMIC BSE tables to human-readable labels
For a full description of the translations, see the tables in the
utilsmodule page.- Parameters:
- tab
DataFrame Evolution table from COSMIC
- kstarsbool, optional
Whether to translate kstar_1 and kstar_2, by default True
- evol_typebool, optional
Whether to translate evol_type, by default True
- label_typestr, optional
Type of label (either “short” or “long”), by default “short”
- replace_columnsbool, optional
Whether to replace original columns (if not new ones are appended), by default True
- tab
- Returns:
- translated_tab
DataFrame The translated table
- translated_tab