paramnames is missed inside

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

Post by Cosmo Xu » October 08 2015

Hi Antony,

I'm using 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, 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)
mc = MCSamples(in_root, files_are_chains=samples_are_chains)

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

Re: paramnames is missed inside

Post by Antony Lewis » October 08 2015

Thanks, if possible please make an pull request on github at

Post Reply