Cobaya: Using External Power Spectrum
Posted: March 15 2023
I am new to Cobaya and wish to figure out how to give an external power spectrum to CAMB from Cobaya input file (.yaml).
I have been using CAMB and setting my desired power spectrum using the method set_initial_power_function(Pk, args), where Pk is the desired power spectrum defined before as a python function.
I want to extend this to Cobaya and constrain a single parameter (say T) in my power spectrum. How should I go about doing this, specifying Cobaya to use this power spectrum?
I went through the docs but couldn't figure out how to connect my python file with Cobaya's input file.
Note: I am trying to run Cobaya from the shell, using the command cobaya-run [filename].yaml
I have been using CAMB and setting my desired power spectrum using the method set_initial_power_function(Pk, args), where Pk is the desired power spectrum defined before as a python function.
I want to extend this to Cobaya and constrain a single parameter (say T) in my power spectrum. How should I go about doing this, specifying Cobaya to use this power spectrum?
I went through the docs but couldn't figure out how to connect my python file with Cobaya's input file.
Note: I am trying to run Cobaya from the shell, using the command cobaya-run [filename].yaml