baudren / montepython_public

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

Fix a bug if using priors #102

Open mpauly opened 7 years ago

mpauly commented 7 years ago

Hi, this should fix a bug when using priors - if I read the code for parsing configuration files correctly I am supposed to use a gaussian prior like this: data.parameters['someparameter'] = [ 60, None, None, 5, 1, 'cosmo', 'gaussian', 60, 5] However this fails as the parameter type currently is read from the last entry of the above array. The following works but seems overly verbose: data.parameters['someparameter'] = [ 60, None, None, 5, 1, 'cosmo', 'gaussian', 60, 5, 'cosmo']. Please let me know in case this is intended behavior for some reason.