Cobaya: Difficulties Connecting Manually Installed CLASS to Cobaya

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Batia Fs
Posts: 1
Joined: August 16 2023
Affiliation: University of Waterloo

Cobaya: Difficulties Connecting Manually Installed CLASS to Cobaya

Post by Batia Fs »

The automatic installation of CLASS wasn't working, so I used the manual installation instead (following directions at https://cobaya.readthedocs.io/en/devel/theory_class.html). It did seem to load properly and it worked when tested without Cobaya. However, when used with Cobaya, an error message comes up saying classy.classy not found.
I tried to set the path within Cobaya to point within the right directory, but no luck so far. Is there some extra step you need to do to make CLASS connect with Cobaya?
Jesus Torrado
Posts: 37
Joined: April 15 2013
Affiliation: RWTH Aachen
Contact:

Re: Cobaya: Difficulties Connecting Manually Installed CLASS to Cobaya

Post by Jesus Torrado »

Hi Batia,

Strange! If CLASS seemed to be installed correctly, the only thing I can think of right now is that maybe you are installing CLASS and Cobaya for different Python installations/versions?

The following command will give you the Python installation used for Cobaya:

Code: Select all

head -n 1 $(which cobaya-run) | cut -c 3-
This should output something like

Code: Select all

!/usr/bin/python3
Now go back to CLASS' root folder, and re-do the "make" command as

Code: Select all

PYTHON=XXX make
where "XXX" is the output of the command above.
Post Reply