Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing derived parameters in Cobaya from modified CLASS #390

Open
kmsurrao opened this issue Nov 19, 2024 · 4 comments
Open

Accessing derived parameters in Cobaya from modified CLASS #390

kmsurrao opened this issue Nov 19, 2024 · 4 comments

Comments

@kmsurrao
Copy link

Hi, I'm running into issues with accessing derived parameters in cobaya using a modified version of CLASS. I think the problem is coming from Line 725 (get_can_provide_params) in classy.py, where the derived parameters one can access is hard-coded

names = ["h", "H0", "Omega_Lambda", "Omega_cdm", "Omega_b", "Omega_m", "Omega_k",
.

@jcolinhill
Copy link

Just to explain this further, the error message that arises is:

[model] ERROR Could not find whom to assign output parameters ['log10f_scf', 'log10m_scf'].

(These are derived parameters computed in our modified version of CLASS.) @cmbant do we need to modify the Cobaya source to access these derived parameters? This seems like a change w.r.t. older versions of Cobaya, where I did not run into this issue. Thanks-

@cmbant
Copy link
Collaborator

cmbant commented Nov 21, 2024

I guess so, don't know if there's a way to introspect them - classy is not my domain!

@jcolinhill
Copy link

jcolinhill commented Nov 21, 2024

Is the implementation different somehow for doing the same thing on a modified version of CAMB? (It seems somewhat less hard-coded:

def get_can_provide_params(self):
)

@cmbant
Copy link
Collaborator

cmbant commented Nov 21, 2024

for camb get_can_provide_params introspects most of them from the camb source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants