baudren / montepython_public

Public repository for the Monte Python Code
MIT License
65 stars 117 forks source link

Possible bug in add_derived.py #66

Open montanari opened 8 years ago

montanari commented 8 years ago

Hi,

I noticed the following loop in add_derived.extend_chain:

for name in derived.iterkeys():
    data.mcmc_parameters[elem]['current'] /= \
        data.mcmc_parameters[elem]['scale']

It looks like [elem] should be replaced by [name].

Please note that since I was actually modifying that part, I didn't test it.

Cheers, Francesco