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

Make atpy not verbose

parent 88317193
......@@ -50,7 +50,7 @@ class Module(common.SEDCreationModule):
"""
filename = parameters['filename']
table = atpy.Table(filename)
table = atpy.Table(filename, verbose=False)
# Base name for adding information to the SED.
name = self.name or 'loadfile'
......
......@@ -152,7 +152,7 @@ class Configuration(object):
base.close()
# Finding the known filters in the data table
obs_table = atpy.Table(self.config['data_file'])
obs_table = atpy.Table(self.config['data_file'], verbose=False)
column_list = []
for column in obs_table.columns:
filter_name = column[:-4] if column.endswith('_err') else column
......
......@@ -166,7 +166,7 @@ class Module(common.AnalysisModule):
# Read the observation table and complete it by adding error where
# none is provided and by adding the systematic deviation.
obs_table = atpy.Table(data_file)
obs_table = atpy.Table(data_file, verbose=False)
for name in filter_list:
name_err = name + '_err'
if name_err not in column_list:
......@@ -272,7 +272,8 @@ class Module(common.AnalysisModule):
best_norm_factor
* best_sed_lambda_fnu[1],
"mJy")
best_sed_table.write(OUT_DIR + obs_name + 'bestSED.fits')
best_sed_table.write(OUT_DIR + obs_name + 'bestSED.fits',
verbose=False)
# Plot the best SED
if plot_best_sed:
......@@ -392,7 +393,7 @@ class Module(common.AnalysisModule):
pdf_table.add_column("probability", pdf_probs)
pdf_table.add_column("probability_sigma", pdf_prob_sigma)
pdf_table.write(OUT_DIR + obs_name + "_" + variable +
"_pdf.fits")
"_pdf.fits", verbose=False)
if plot_pdf:
figure = plt.figure()
......@@ -416,7 +417,7 @@ class Module(common.AnalysisModule):
"_pdf.pdf")
# Write the computation table FITS
fits_table.write(OUT_DIR + obs_name + '_comptable.fits')
fits_table.write(OUT_DIR + obs_name + '_comptable.fits', verbose=False)
# Write the results to the fits file
result_table = atpy.Table()
......@@ -426,7 +427,7 @@ class Module(common.AnalysisModule):
result_table.add_column(variable, results[variable])
result_table.add_column(variable + '_err',
results[variable + '_err'])
result_table.write(OUT_DIR + RESULT_FILE)
result_table.write(OUT_DIR + RESULT_FILE, verbose=False)
def adjust_errors(flux, error, default_error=0.1, systematic_deviation=0.1):
......
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