Commit 91bf8842 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Limit the redshifts from observation table

parent 514352af
......@@ -44,6 +44,8 @@ TOLERANCE = 1.e-12
# Probability threshold: models with a lower probability are excluded from
# the moments computation.
MIN_PROBABILITY = 1.e-20
# Limit the redshift to this number of decimals
REDSHIFT_DECIMALS=2
# Name of the file containing the analysis results
RESULT_FILE = "analysis_results.fits"
# Name of the file containing the best models information
......@@ -183,6 +185,9 @@ class PdfAnalysis(AnalysisModule):
filters,
TOLERANCE
)
# Limit the observation table redshift decimals.
obs_table["redshift"] = np.round(obs_table["redshift"],
REDSHIFT_DECIMALS)
##################################################################
# Model computation #
......
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