Generic BAO Likelihood on Cobaya

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Pablo Lemos
Posts: 11
Joined: December 07 2015
Affiliation: University of Sussex
Contact:

Generic BAO Likelihood on Cobaya

Post by Pablo Lemos » July 07 2020

Hello,

I am trying to run BAO with my own data, using the bao.generic likelihood. My likelihood block looks like this:

Code: Select all

likelihood:
  bao.generic:
    measurements_file: /full/path/to/myBAO.dat
    cov_file: /full/path/to/myBAO.cov
But I keep getting the following message:

[tools] *ERROR* There was a problem when importing likelihood 'bao.generic':
[input] *ERROR* Failed to get defaults for component or class 'bao.generic' [module 'cobaya.likelihoods.bao.generic' has no attribute 'generic']

Am I doing something wrong?

Thanks,
Pablo

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

Re: Generic BAO Likelihood on Cobaya

Post by Antony Lewis » July 08 2020

Does it work if you rename bao_generic to generic in generic.py?

Pablo Lemos
Posts: 11
Joined: December 07 2015
Affiliation: University of Sussex
Contact:

Re: Generic BAO Likelihood on Cobaya

Post by Pablo Lemos » July 08 2020

It does, thanks! I just made a pull request

Post Reply