-
Notifications
You must be signed in to change notification settings - Fork 15
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
xcorr: add CLASS compatability #27
Comments
There shouldn't be any direct dependence on class or camb if using Cobaya or CCL? |
At the moment in xcorr I am using things like and using Is there a better way where I don't have to use variable and method names like those in the likelihood? |
Those are all general cobaya functions not CAMB. (theory can be replaced with provider). camb would need to be an explicit dependency of the test (have to choose some theory code to actually run), but not the likelihood. Not sure if "omegam" may be an issue, if CLASS calls it something else. |
@cmbant thanks for being patient with me getting back on this. Having However, there are still a couple of things. zstarcamb has redshift gridThe way the list of required redshifts is treated seems to be different between camb and classy cobaya theories.
but in the classy theory the
but returns an empty array at any other value:
Is this the intended behaviour? I could work around it with some intermediate interpolation (of the galaxy dndz onto the |
For Hubble CAMB is just finding and returning closest value that is calculated and stored. So they are both intended behaviour in the sense that z has to be requested in advance to get a valid value for it. But there may be a case for some more explicit error report when an invalid z value is requested. Why do you need z_star? I guess the classy wrapper would have to be updated if you need it (probably in _get_derived_all, though classy is not my domain...) |
PS. I would be more worried that the values are you are getting for Hubble are different between the codes! |
I use The differences in Hubble turned out to be due to different defaults for neutrino masses. It goes away when explicitly setting |
I should fix the xcorr compatibility with CLASS, which I think should only be a case of translating variable and function names where necessary.
The text was updated successfully, but these errors were encountered: