Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Gansukh Tumurtushaa
Posts: 34
Joined: October 05 2013
Affiliation: Sogang univ.

Dear members,

I am bit confused with the roots directory of the following python script.

Code: Select all

import planckStyle as s
from pylab import *

g=s.getSinglePlotter&#40;&#41;

#g.settings.param_names_for_labels = 'clik_units_for_w_wa.paramnames'
roots = &#91;'base_w_wa_planck_lowl_lowLike_BAO'&#93;

params = g.get_param_array&#40;roots&#91;0&#93;, &#91;'w','wa'&#93;&#41;

g.plot_2d&#40;roots, param_pair=params, filled=True,lims=&#91;-2, -0.3 , -1.6, 2&#93;&#41;

text&#40;-1.9, -.7, s.WP+'+BAO', color='#606060',fontsize=8&#41;
text&#40;-1.9, -1.0, s.WP+'+Union2.1', color='#dd0000',fontsize=8&#41;
text&#40;-1.9, -1.3, s.WP+'+SNLS', color='#0000dd',fontsize=8&#41;

g.export&#40;'plots/w_wa.pdf'&#41;

because when I compile it, it ends up with

Code: Select all

Traceback &#40;most recent call last&#41;&#58;
File "batch1/outputs/w_wa.py", line 10, in <module>
params = g.get_param_array&#40;roots&#91;0&#93;, &#91;'w','wa'&#93;&#41;
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 769, in get_param_array
return self.paramNamesForRoot&#40;root&#41;.parsWithNames&#40;in_params, error=True, renames=renames&#41;
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 479, in paramNamesForRoot
if not root in self.param_name_sets&#58; self.param_name_sets&#91;root&#93; = self.sampleAnalyser.paramsForRoot&#40;root, labelParams=self.settings.param_names_for_labels&#41;
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 381, in paramsForRoot
samples = self.samplesForRoot&#40;root&#41;
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 285, in samplesForRoot

I think the exception above is quite trivial because I use PLA2015 chain and there was no such "base_w_wa_planck_lowl_lowLike_BAO" chain in it.
So I copied whole "planck_lowl_lowLike_BAO" folder from PLA2013 chain into PLA2015 base directory and compiled again but I still end up with same result as above. What should I do in this case, any suggestions?

Thing is that my PLA2013 chain is not linked to my cosmomc directory yet that is why I copied whole folder. Also I do not know how to use PLA2013 chain with PLA2015 chain.

Is it possible to link both 2013 and 2015 PLA chain to cosmomc directory at the same time? if yes, how? so that I do not need to copy files any more... or how do you use both 2013 and 2013 Planck data in your research?

Thank you.

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

g=s.getSinglePlotter&#40;chain_dir=&#91;'PLA13/base_w_wa/planck_lowl_lowLike_BAO/', 'PLA15/base_w_wa/plikHM_TT_lowTEB_BAO/'&#93;&#41;