-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix some minor problems in boost calculation and improve docstring #646
Conversation
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.
Thank you.
In the notebook demo_boost_factors.ipynb
, is it expected to get nan
from print(u.compute_nfw_boost(1000, 1000, boost0=0.1))
(cell 10)?
Ah right, I forgot to remove that line in the notebook... I was checking things out. I think that's not really a problem as the denominator will go to zero when x=1, so that's expected. Question is whether we want to add a warning or something to explicitely deal with the case R_proj = R_s? |
For completeness, yes, we should probably add something to deal with the case |
We can do the following to deal with the case
|
Thanks, I implemented that and that took care of the issue! |
Done. And docstrings updated accordingly. |
@combet Thank you. I will approve the PR. |
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.
Looks good! Thanks @hsinfan1996 for doing the hard part of the review!
correct_sigma_with_boost*
as the boost will generally be applied to DeltaSigma or shear and not Sigma.