-
Notifications
You must be signed in to change notification settings - Fork 2
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
Using A_s instead of sigma8 in a 3x2pt forecast is generating invalid values in CCL boltzmann.py when performing derivative calculations #62
Comments
I will work on this now. |
@fjaviersanchez , I could pinpoint more or less where the error is, but this is something I never fixed before. I assume it's numerical instabilities in the derivatives due to the small values of A_s compared to the other parameters. I won't be able to solve it now. |
Thank you for checking and identifying the issue! I think this can be potentially solved when we add the stem derivative method. One potential solution is to normalize all parameters internally for the derivatives and then change back or change the step size dynamically, but will check first if the easy fix works. |
I included a way to normalize the parameters if you pass parameter bounds in the input configuration file (à la cosmosis) in #68. If you want to take a look at the latest master branch and retry. You will need to modify the
|
TL;DR: A call to boltzmann.py within CCL is failing in the derivative calculation, presumably due to O(10^-9) values in A_s.
Explanation: When attempting a 3x2pt forecast, it runs and completes when the sigma8 parameter is used. If A_s is used instead, the Jupyter kernel dies after a few seconds when trying to calculate the Fisher matrix. Running the code as a python script from the command line, the error returned is:
The trace did not contain information about where this error occurred, so I ran
pdb
on the script (my first time, so not very skillfully) and found the spot where it is breaking:The text was updated successfully, but these errors were encountered: