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

Mean delta sigma #955

Merged
merged 12 commits into from
Oct 29, 2019
Merged

Mean delta sigma #955

merged 12 commits into from
Oct 29, 2019

Conversation

aphearin
Copy link
Contributor

Merging in the mean_delta_sigma function written by @johannesulf.

Currently keeping the name mean_delta_sigma, although I think this function should outright replace the existing delta_sigma function. The question is whether people who use Halotools for lensing calculations would be bothered, so soliciting input from @Christopher-Bradshaw, @dr-guangtou, @alexieleauthaud, and whoever else uses this function.

@aphearin aphearin added this to the v0.7 milestone Oct 28, 2019
@aphearin aphearin self-assigned this Oct 28, 2019
…ial unit-tests, but suspicious behavior on SV test. Need to implement Rhalo-based calculation in order to confirm whether there is a problem
…e 1-2-halo decomposition of the lensing calculation. Everything checks out, so time to clean up and merge
@aphearin
Copy link
Contributor Author

This PR also introduces a 1-halo and 2-halo decomposition of the lensing signal, using the mean_delta_sigma_one_two_halo_decomp function. The new function either accepts halo ID arguments for the input galaxies and particles, or alternatively accepts halo_radii for the input galaxies.

@Christopher-Bradshaw
Copy link
Contributor

From what we've talked about, it sounds like there is no real downside to the change, just a slightly more accurate estimate? In that case I have no problem with it replacing the old function.

I think there needs to be pretty strong justification to have duplicate functionality else it is confusing for users, and as far as I know there isn't that here.

@aphearin
Copy link
Contributor Author

Hmm, I see your point. The current PR only raises a DeprecationWarning for the old delta_sigma, but maybe you’re right that it’s better for this function to be deleted entirely from the v0.7 release.

@aphearin aphearin merged commit 2caca51 into astropy:master Oct 29, 2019
@aphearin aphearin deleted the mean_delta_sigma_dev branch October 29, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants