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()
#g.settings.param_names_for_labels = 'clik_units_for_w_wa.paramnames'
roots = ['base_w_wa_planck_lowl_lowLike_BAO']
params = g.get_param_array(roots[0], ['w','wa'])
g.plot_2d(roots, param_pair=params, filled=True,lims=[-2, -0.3 , -1.6, 2])
#g.add_2d_contours(roots[0], params[0], params[1], filled=False, color='#ff0000')
#g.add_2d_contours(roots[2], params[0], params[1], plotno=1,filled=True,color='#00ff00' )
#g.add_2d_contours(roots[1], params[0], params[1], plotno=2,filled=True,color='#0000ff' )
g.add_x_marker(-1)
g.add_y_marker(0)
text(-1.9, -.7, s.WP+'+BAO', color='#606060',fontsize=8)
text(-1.9, -1.0, s.WP+'+Union2.1', color='#dd0000',fontsize=8)
text(-1.9, -1.3, s.WP+'+SNLS', color='#0000dd',fontsize=8)
g.export('plots/w_wa.pdf')
Code: Select all
Traceback (most recent call last):
File "batch1/outputs/w_wa.py", line 10, in <module>
params = g.get_param_array(roots[0], ['w','wa'])
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 769, in get_param_array
return self.paramNamesForRoot(root).parsWithNames(in_params, error=True, renames=renames)
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 479, in paramNamesForRoot
if not root in self.param_name_sets: self.param_name_sets[root] = self.sampleAnalyser.paramsForRoot(root, labelParams=self.settings.param_names_for_labels)
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 381, in paramsForRoot
samples = self.samplesForRoot(root)
File "/home/gansuh/cosmomc_Feb15/python/GetDistPlots.py", line 285, in samplesForRoot
if not jobItem: raise Exception('chain not found: ' + root)
Exception: chain not found: base_w_wa_planck_lowl_lowLike_BAO
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.