Commit ac788858 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Save the best model to VO-Table in pdf_analysis

parent aa1fa0ae
......@@ -453,16 +453,10 @@ class PdfAnalysis(AnalysisModule):
obs_index]
if save_best_sed:
table = Table((
Column(best_lambda,
name="Wavelength",
unit="nm"),
Column(best_fnu,
name="Fnu density",
unit="mJy")
))
table.write(OUT_DIR + "{}_best_model.fits".format(
obs_name))
sed.to_votable(
OUT_DIR + "{}_best_model.xml".format(obs_name),
mass=normalisation_factors[best_index, obs_index]
)
if plot_best_sed:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment