Cobaya/Camb external scalar and tensor power spectrum

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
John Wick
Posts: 3
Joined: April 28 2023
Affiliation: Louisiana State University

Cobaya/Camb external scalar and tensor power spectrum

Post by John Wick » April 29 2023

Hi all

I would like to use a customized scalar and tensor primordial power spectrum into CAMB code and then use cobaya code to constrain the parameters. There is already a code (https://github.com/CobayaSampler/paper_cosmo_demo) for how to feed external power spectrum to camb but I would modify both scalar and tensor power spectrum and then need to know how I should modify also the yaml input file. It would be great if some one could help me out.

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

Re: Cobaya/Camb external scalar and tensor power spectrum

Post by Antony Lewis » May 05 2023

You should be able to use a custom tensor spectrum in a similar way to scalar.

There's also example P(k) code in tests/test_cosmo_multi_theory.py.

Post Reply