Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
91bf8842
Commit
91bf8842
authored
Mar 06, 2014
by
Yannick Roehlly
Browse files
Limit the redshifts from observation table
parent
514352af
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/__init__.py
View file @
91bf8842
...
...
@@ -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 #
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment