-
Notifications
You must be signed in to change notification settings - Fork 65
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
Allow sigma8 as an input when using CAMB for nonlinear power spectra #1106
Conversation
The failing CI is due to CLASS not supporting cython 3.0.0: lesgourg/class_public#531 |
So it's because of an update in gha? |
I think because class is not forcing its cython dependence to be less than 3.0.0, the class installation now fails because cython updated to 3.0.0, which breaks class. |
OK, I say we wait a couple of days and see if class fix that. Otherwise we can try to force gha to use a previous cython version (disabling the class tests would be kind of tragic) |
classy 2.8.0 might work. Versions>2.8.0 will install Cython 3.0.0 when being installed. |
classy==2.8.0 |
No luck, it seems... |
It doesn't work here. pip (or mamba?) still installs the latest Cython I guess. |
Does it mean only 2.9.4 and below are pip installable? |
@tilmantroester tests can now run, but some seem to be failing. |
Can someone explain this test: From this my understanding is that if sigma8 is given, then setting mu and Sigma should not have any effect because any rescaling of the power spectrum is undone by the sigma8 normalisation? |
Humm, I think it's just testing that initialising power spectra with A_s or its associated sigma8 gives the same result, even when you're passing MG parameters != 0 |
Ah, my confusion was that the input sigma8 is including MG. Should be fixed now. Looking at the MG implementation, I'm a bit worried though. It's quite opaque and the C-layer does things like creating new C cosmology structs. Since we don't support the C API any more, is that safe? |
Pull Request Test Coverage Report for Build 5640753554
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR rescales the primordial power spectrum in CAMB before computing the non-linear power spectrum, allowing using sigma8 as an input.
By default,
INTEGRATION_SIGMAR_EPSREL
is set to 1e-5, which results in a relative error of 1e-3 on sigma8. We might want to push this a bit.