Example of using sources in Cobaya
Posted: November 07 2019
Hi,
I already have a code built on CAMB that calculates power spectra for different types of sources (in the Limber approximation). I discovered that camb has already camb sources, and I was able to use it.
Now, as I think this might speed up my likelihood calculation in my cosmological analysis, I tried to use source_Cl in theory needs for cobaya. But I really do not know what to do precisely. From the documentation for me it is not very clear, and I appreciate some help.
I tried different combinations of using dictionaries, for example "source_Cl": {"sources": {"source1": {"function": "spline", "bias": 1., "z": z, "W": W}}}}, but nothing... (z is redshift, W is a number count in this specific example)
Is there any proper example to use source_Cl in cobaya? For other observables it was easy to implement them from the documentation.
Thanks,
I already have a code built on CAMB that calculates power spectra for different types of sources (in the Limber approximation). I discovered that camb has already camb sources, and I was able to use it.
Now, as I think this might speed up my likelihood calculation in my cosmological analysis, I tried to use source_Cl in theory needs for cobaya. But I really do not know what to do precisely. From the documentation for me it is not very clear, and I appreciate some help.
I tried different combinations of using dictionaries, for example "source_Cl": {"sources": {"source1": {"function": "spline", "bias": 1., "z": z, "W": W}}}}, but nothing... (z is redshift, W is a number count in this specific example)
Is there any proper example to use source_Cl in cobaya? For other observables it was easy to implement them from the documentation.
Thanks,