diff --git a/etl/prs/prs_poc_latex_table.py b/etl/prs/prs_poc_latex_table.py index 8f65fb8de409c8a62fe1d474bbdbda0fb6561917..0ae0d5566610af2cd7e72faeda67b25e55b1526a 100644 --- a/etl/prs/prs_poc_latex_table.py +++ b/etl/prs/prs_poc_latex_table.py @@ -53,6 +53,7 @@ for transition_id in ['86', '87', '88', '256', '257', '380', '381']: df_source_properties.loc[df_source_properties[f'tpeak_{transition_id}'].str.startswith('$nan'), [f'tpeak_{transition_id}', f'linewidth_{transition_id}']] = 'N/A' df_source_properties.drop(columns=[f'rms_noise_{transition_id}', f'linewidth_unc_{transition_id}'], inplace=True) + remap_columns = OrderedDict([ ('AGAL_name', ('Source', '')), ('class_phys', ('Classification', '')), @@ -68,14 +69,14 @@ remap_columns = OrderedDict([ ('linewidth_88', ('$FWHM_{88}$', '[km s$^{-1}]$')), # ('rms_noise_86', ('$\sigma_{96.7GHz}$', '[K]')), ('tpeak_256', ('$T_{MB, 256}$', '[K]')), - ('linewidth_256', ('$FWHM_{(5_K-4_K)}$', fwhm_units)), + ('linewidth_256', ('$FWHM_{256}$', fwhm_units)), ('tpeak_257', ('$T_{MB, 257}$', '[K]')), - ('linewidth_257', ('$FWHM_{257}$', fwhm_units)), + ('linewidth_257', ('$FWHM_{(5_K-4_K)}$', fwhm_units)), # ('rms_noise_256', ('$\sigma_{241.7GHz}$', '[K]')), ('tpeak_380', ('$T_{MB, 380}$', '[K]')), - ('linewidth_380', ('$FWHM_{(7_K-6_K)}$', fwhm_units)), + ('linewidth_380', ('$FWHM_{380}$', fwhm_units)), ('tpeak_381', ('$T_{MB, 381}$', '[K]')), - ('linewidth_381', ('$FWHM_{381}$', fwhm_units)), + ('linewidth_381', ('$FWHM_{(7_K-6_K)}$', fwhm_units)), # ('rms_noise_380', ('$\sigma_{338.3GHz}$', '[K]')), ]) df_table = df_table[remap_columns.keys()] @@ -92,6 +93,7 @@ label = 'tab:poc_results' latex_table = (df_fit_results.style.hide(axis='index').format({ ('best fit($n\mathrm{H_2}$)', '$[10^{5}\,\mathrm{cm^{-3}}]$'): '{:,.1f}'}) .to_latex(caption=caption, label=label, hrules=True, environment='table*', position_float='centering')) +latex_table = latex_table.replace('[[', '[').replace(']]', ']') with open(os.path.join('prs', 'output', 'poc_tables', 'fit_results.tex'), 'w') as outfile: outfile.write(latex_table)