Commit 9f79eb07 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Use a fixed width format for the output files. It makes them easier to read.

parent 8e4524da
......@@ -125,7 +125,8 @@ def save_table_analysis(filename, obsid, analysed_variables, analysed_averages,
np_analysed_std[:, index],
name=variable+"_err"
))
result_table.write(OUT_DIR + filename, format='ascii.commented_header')
result_table.write(OUT_DIR + filename, format='ascii.fixed_width',
delimiter=None)
def save_table_best(filename, obsid, chi2, chi2_red, variables, fluxes, filters,
......@@ -175,8 +176,8 @@ def save_table_best(filename, obsid, chi2, chi2_red, variables, fluxes, filters,
column = Column(np_fluxes[:, index], name=name, unit='mJy')
best_model_table.add_column(column)
best_model_table.write(OUT_DIR + filename,
format='ascii.commented_header')
best_model_table.write(OUT_DIR + filename,format='ascii.fixed_width',
delimiter=None)
def dchi2_over_ds2(s):
......
Markdown is supported
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