mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 20:18:03 +00:00
Update name
This commit is contained in:
parent
da1b317861
commit
8b92d632aa
1 changed files with 13 additions and 11 deletions
|
@ -59,6 +59,7 @@ def names_to_latex(names, for_corner=False):
|
||||||
"mag_cal": "\\mathcal{M}",
|
"mag_cal": "\\mathcal{M}",
|
||||||
"l": "\\ell ~ [\\mathrm{deg}]",
|
"l": "\\ell ~ [\\mathrm{deg}]",
|
||||||
"b": "b ~ [\\mathrm{deg}]",
|
"b": "b ~ [\\mathrm{deg}]",
|
||||||
|
"rLG": "R_{\\rm offset} ~ [\\mathrm{Mpc} / h]",
|
||||||
}
|
}
|
||||||
|
|
||||||
ltx_corner = {"alpha": r"$\alpha$",
|
ltx_corner = {"alpha": r"$\alpha$",
|
||||||
|
@ -209,6 +210,7 @@ def get_samples(fname, convert_Vext_to_galactic=True):
|
||||||
for key in grp.keys():
|
for key in grp.keys():
|
||||||
samples[key] = grp[key][...]
|
samples[key] = grp[key][...]
|
||||||
|
|
||||||
|
if "Vext" in samples:
|
||||||
if convert_Vext_to_galactic:
|
if convert_Vext_to_galactic:
|
||||||
Vext = samples.pop("Vext")
|
Vext = samples.pop("Vext")
|
||||||
samples["Vmag"] = np.linalg.norm(Vext, axis=1)
|
samples["Vmag"] = np.linalg.norm(Vext, axis=1)
|
||||||
|
|
Loading…
Reference in a new issue