COBAYA+CLASS: Can't print/plot theta

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Ali Rida Khalife
Posts: 18
Joined: October 31 2022
Affiliation: Institut d'Astrophysique de Paris

COBAYA+CLASS: Can't print/plot theta

Post by Ali Rida Khalife » July 07 2023

Hello,
I did a run in COBAYA, putting a prior on H_0 rather than theta. That part of my yaml file looks like this:

Code: Select all

  100*theta_s:
          #value: 'lambda theta_s_1e2: theta_s_1e2'
    derived: false
    latex: 100\theta_\mathrm{s}
  H0:
   prior:
     dist: norm
     loc: 73.2
     scale: 1.3
   ref:
    dist: norm
    loc: 68
    scale: 1.3
   proposal: 1.3
   latex: H_0
Now I want to include theta in my triangular plots, but I think I did a mistake in setting derived: false, so now the parameter is not even included in the updated input file.
How can I include theta again?
I tried post-processing in several ways but non of them worked.
I'd really appreciate the help,
Thanks!

Jesus Torrado
Posts: 36
Joined: April 15 2013
Affiliation: RWTH Aachen
Contact:

Re: COBAYA+CLASS: Can't print/plot theta

Post by Jesus Torrado » September 06 2023

Dear Ali,

Not trivial in the current version, unfortunately. I have added this feature in a different branch called "class_upd", where you can simply make, as expected:

Code: Select all

post:
  add:
    params:
      theta_s_100:
The branch will be merged soon in a new release, but you can just clone it, check out the branch ("git checkout class_upd") and test this now.

Jesus Torrado
Posts: 36
Joined: April 15 2013
Affiliation: RWTH Aachen
Contact:

Re: COBAYA+CLASS: Can't print/plot theta

Post by Jesus Torrado » September 07 2023

It's in the master branch now.

Ali Rida Khalife
Posts: 18
Joined: October 31 2022
Affiliation: Institut d'Astrophysique de Paris

Re: COBAYA+CLASS: Can't print/plot theta

Post by Ali Rida Khalife » September 17 2023

Thank you Jesus!

Post Reply