These are chat archives for astropy/astropy

31st
May 2017
matrixbot
@matrixbot
May 31 2017 14:57
bsipocz Hi
Anyone has a good workaround to merge cells in a latex output of a table? I have two columns in mind that would be nice to print out as only one. Asking for advice here first before making an ugly hack for that
Brigitta Sipocz
@bsipocz
May 31 2017 14:59
e.g.
<Table length=5>
  Star    Pl     MJ     e_MJ     MH     e_MH 
                mag     mag     mag     mag  
 str10   str1 float32 float32 float32 float32
-------- ---- ------- ------- ------- -------
 WASP-48    b     nan     nan     nan     nan
 CoRoT-1    b     nan     nan   10.04    0.52
CoRoT-2A    b     nan     nan     nan     nan
Kepler-7    b     nan     nan     nan     nan
  KELT-1    b     nan     nan     nan     nan
would need to look like:
\begin{table}
\begin{tabular}{ccc}
Star Pl & MJ  e_MJ & MH e_MH \\
 &  $\mathrm{mag}$  & $\mathrm{mag}$ \\
WASP-48  b  & nan & nan \\
CoRoT-1  b & nan & 10.04 ± 0.52 \\
CoRoT-2A  b &  nan & nan \\
Kepler-7  b  & nan & nan \\
KELT-1  b &  nan & nan \\
\end{tabular}
\end{table}
matrixbot
@matrixbot
May 31 2017 20:21
Valeska2 on Freenode hola