CobayaSampler / cobaya

Code for Bayesian Analysis
http://cobaya.readthedocs.io/en/latest/
Other
126 stars 125 forks source link

bao.generic likelihood not working for the distances of type Dv_over_rs #363

Closed prakharbansal16 closed 3 months ago

prakharbansal16 commented 3 months ago

I'm trying to use the DESI 2024 data files using the bao.generic likelihood but I'm getting an error "angular_diameter_distance not computed for all z requested"

Looks like the problem is with the datapoint Dv_over_rs. I also tried with the file "test_bao_mixed_observables_mean.txt" in the bao datasets and am getting the same error.

cmbant commented 3 months ago

What's the difference with the test_cosmo_bao:test_generic_mixed_camb test, which I think passes?

prakharbansal16 commented 3 months ago

I tried testing this and am still getting the same error

[camb] ERROR angular_diameter_distance not computed for all z requested. Requested z are 0.29, but computed ones are [2.34]

cmbant commented 3 months ago

You ran pytest on test_generic_mixed_camb and it failed? Are you using the latest version of Cobaya? (this sounds like an error fixed quite some time ago)

prakharbansal16 commented 3 months ago

Yes, I was using the an older version (3.3.2). I had installed it using the command on the website "python -m pip install cobaya --upgrade". I now manually installed the latest version using "pip install cobaya==3.5.1". But when I import cobaya in a script I get an error

"ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"

JesusTorrado commented 3 months ago

A simple web search of the error message suggests reinstalling numpy: pip uninstall numpy and pip install numpy.

prakharbansal16 commented 3 months ago

Thanks, it was indeed the problem.