Commit 34b32cfc authored by Guang's avatar Guang
Browse files

Revert "do not output chi2 for fluxes"

This reverts commit d7ca56e1.
parent 6ae44b09
......@@ -201,9 +201,8 @@ def analysis(idx, obs):
likelihood)
gbl_results.bayes.fluxmean[band][idx] = mean
gbl_results.bayes.fluxerror[band][idx] = std
# 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)
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]
......
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