Commit 9b651256 authored by Médéric Boquien's avatar Médéric Boquien

Ensure that the proper linear or logarithmic scaling is applied when save the χ² files.

parent 7533fbe8
......@@ -24,6 +24,7 @@
- Make sure that the best-fit models are stored with the correct scaling factor when the distance is given explicitly (Médéric Boquien)
- Some labels and the title for the SED plots has been improved to avoid overlaps and overflows. (Médéric Boquien)
- Ensure that best models are properly computed when models are computed by blocks and that no fit could be made in one or more blocks. This can be case if all the models in the block are older than the age of the universe. (Médéric)
- Make sure that the parameters are saved with the proper scale (linear or logarithmic) in the χ² files. (Médéric Boquien)
### Optimised
- Slight speedup of the computation of the likelihood from the χ² using a multiplication rather than a division. (Médéric Boquien)
- Speedup of the computation of the χ² by ~10% taking the opposite of a scalar rather than of an array. (Médéric Boquien)
......
......@@ -183,7 +183,7 @@ def analysis(idx, obs):
gbl_results.bayes.intmean[prop][idx] = mean
gbl_results.bayes.interror[prop][idx] = std
if gbl_models.conf['analysis_params']['save_chi2'] is True:
save_chi2(obs, prop, gbl_models, chi2, values)
save_chi2(obs, prop, gbl_models, chi2, _(values))
for prop in gbl_results.bayes.extmean:
if prop.endswith('_log'):
......@@ -198,7 +198,7 @@ def analysis(idx, obs):
gbl_results.bayes.exterror[prop][idx] = std
if gbl_models.conf['analysis_params']['save_chi2'] is True:
save_chi2(obs, prop, gbl_models, chi2,
values * scaling * corr_dz)
_(values * scaling * corr_dz))
for band in gbl_results.bayes.fluxmean:
values = gbl_models.flux[band][wz]
......
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