diff --git a/CHANGELOG.md b/CHANGELOG.md
index d011258d52aea43d52ae1b34fd20c4369927aeb1..7e18c91790afe9e7eca83774490390a8ec9d59eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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)
diff --git a/pcigale/analysis_modules/pdf_analysis/workers.py b/pcigale/analysis_modules/pdf_analysis/workers.py
index 04d882e523c7dfe412430fc3455c006bfc8a88b3..434b8ac4f699898ba79ffe50c6b7f05fb8176afb 100644
--- a/pcigale/analysis_modules/pdf_analysis/workers.py
+++ b/pcigale/analysis_modules/pdf_analysis/workers.py
@@ -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]