paramnames is missed inside GetDist.py

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Cosmo Xu
Posts: 7
Joined: March 19 2013
Affiliation: NJU/NAOC

paramnames is missed inside GetDist.py

Post by Cosmo Xu » October 08 2015

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)

Antony Lewis
Posts: 1543
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: paramnames is missed inside GetDist.py

Post by Antony Lewis » October 08 2015

Thanks, if possible please make an pull request on github at
https://github.com/cmbant/getdist

Post Reply