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
Guang
x-cigale
Commits
6ae44b09
Commit
6ae44b09
authored
Oct 22, 2019
by
Guang
Browse files
do not output chi2 for fluxes
parent
4c200a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
6ae44b09
...
...
@@ -201,8 +201,9 @@ def analysis(idx, obs):
likelihood
)
gbl_results
.
bayes
.
fluxmean
[
band
][
idx
]
=
mean
gbl_results
.
bayes
.
fluxerror
[
band
][
idx
]
=
std
if
gbl_models
.
conf
[
'analysis_params'
][
'save_chi2'
]
is
True
:
save_chi2
(
obs
,
band
,
gbl_models
,
chi2
,
values
*
scaling
)
# Uncomment the following lines to save chi2 of fluxes
#if gbl_models.conf['analysis_params']['save_chi2'] is True:
# save_chi2(obs, band, gbl_models, chi2, values * scaling)
best_idx_z
=
np
.
nanargmin
(
chi2
)
gbl_results
.
best
.
chi2
[
idx
]
=
chi2
[
best_idx_z
]
...
...
Write
Preview
Markdown
is supported
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