Page 1 of 1

Generic BAO Likelihood on Cobaya

Posted: July 07 2020
by Pablo Lemos
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

Re: Generic BAO Likelihood on Cobaya

Posted: July 08 2020
by Antony Lewis
Does it work if you rename bao_generic to generic in generic.py?

Re: Generic BAO Likelihood on Cobaya

Posted: July 08 2020
by Pablo Lemos
It does, thanks! I just made a pull request