CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

Exception: parameter name not found: omeganuh2 for Planck Chains Using GetDist
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Elimboto Yohana



Joined: 31 May 2018
Posts: 3
Affiliation: TSSFL

PostPosted: May 31 2018  Reply with quote

Hi CosmoCoffee members,

I am using GetDist to plot contours for cosmological parameters from Planck chains for base and w, wa parameters. The specific paths to the Planck data that I load are:

./COM_CosmoParams_fullGrid_R2.00/base/plikHM_TTTEEE_lowTEB_lensing/base_plikHM_TTTEEE_lowTEB_lensing_post_BAO_H070p6_JLA'

./COM_CosmoParams_fullGrid_R2.00/base_wwa/plikHM_TTTEEE_lowTEB_BAO_H070p6_JLA/base_w_wa_plikHM_TTTEEE_lowTEB_BAO_H070p6_JLA_post_lensing'

Every time I run my code, I get this error:

Exception: parameter name not found: omeganuh2

But, the parameter omeganuh2 seems to be included in the chains.

Can you help on how to proceed to solve this problem?

Thank you,

Elimboto
Back to top
View user's profile [ Hidden ] Visit poster's website
Antony Lewis



Joined: 23 Sep 2004
Posts: 1350
Affiliation: University of Sussex

PostPosted: May 31 2018  Reply with quote

What code? The neutrino mass is fixed in those chains.
Back to top
View user's profile [ Hidden ] Visit poster's website
Elimboto Yohana



Joined: 31 May 2018
Posts: 3
Affiliation: TSSFL

PostPosted: June 01 2018  Reply with quote

Antony Lewis wrote:
What code? The neutrino mass is fixed in those chains.



Hi Antony, thank you for reply.

Here is the code:

Code:
#!/usr/bin/env python3

from getdist import loadMCSamples, plots

#Specify location of Planck chains
path_planck_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA = '/home/tssfl/Desktop/COM_CosmoParams_fullGrid_R2.00/base_w_wa/plikHM_TTTEEE_lowTEB_BAO_H070p6_JLA/base_w_wa_plikHM_TTTEEE_lowTEB_BAO_H070p6_JLA_post_lensing'


#Load Planck chains
samples_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA = loadMCSamples("{}".format(path_planck_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA))

getplot = plots.getSubplotPlotter()
getplot.triangle_plot([samples_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA],
                  ['omegabh2', 'omegach2', 'w', 'wa', 'logA', 'H0', 'ns', 'omeganuh2'],
                  filled=True,
                  legend_labels = ['Samples_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA'])

getplot.export('Samples_base_w_wa_TTTEEE_lowTEB_lensing_post_BAO_H0_JLA.png')


When I run this code, I get the error message: Exception: parameter name not found: omeganuh2


But, If I do not parse parameter omeganuh2, here is the output:




omeganuh2 is listed in the parameters file and denoted by omeganuh2* (just like H0) to indicate that it is derived, so what is wrong with what I am doing?
Back to top
View user's profile [ Hidden ] Visit poster's website
Antony Lewis



Joined: 23 Sep 2004
Posts: 1350
Affiliation: University of Sussex

PostPosted: June 01 2018  Reply with quote

omeganuh2 is not varied in the chain because the neutrino mass is fixed.
Back to top
View user's profile [ Hidden ] Visit poster's website
Elimboto Yohana



Joined: 31 May 2018
Posts: 3
Affiliation: TSSFL

PostPosted: June 01 2018  Reply with quote

Antony Lewis wrote:
omeganuh2 is not varied in the chain because the neutrino mass is fixed.


Does this mean it is not possible to plot omeganuh2 altogether with the rest of the parameters or there is a workaround to do so?
Back to top
View user's profile [ Hidden ] Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.