Page 1 of 1

paramnames is missed inside GetDist.py

Posted: October 08 2015
by Cosmo Xu
Hi Antony,

I'm using GetDist.py to process the sampled MCMC chains, I found that the label 'parameter_names' in *.ini file is not used at all, so that if I want to use the parameter names that I want, I will have to place the file_root.paramnames file together with the chains.

So I checked the contents inside GetDist.py, and made the following modifications, then everything is OK.

paramnames = ini.string('parameter_names', '')

# Create instance of MCSamples
if paramnames is not None:
print ('paramnames is not empty: %s'%(paramnames))
mc = MCSamples(in_root, files_are_chains=samples_are_chains, paramNamesFile=paramnames)
else:
mc = MCSamples(in_root, files_are_chains=samples_are_chains)

Re: paramnames is missed inside GetDist.py

Posted: October 08 2015
by Antony Lewis
Thanks, if possible please make an pull request on github at
https://github.com/cmbant/getdist