{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/halotools/issues/472","repository_url":"https://api.github.com/repos/astropy/halotools","labels_url":"https://api.github.com/repos/astropy/halotools/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/astropy/halotools/issues/472/comments","events_url":"https://api.github.com/repos/astropy/halotools/issues/472/events","html_url":"https://github.com/astropy/halotools/issues/472","id":149256280,"number":472,"title":"Halo-centric pair counter","user":{"login":"aphearin","id":6951595,"avatar_url":"https://avatars.githubusercontent.com/u/6951595?v=3","gravatar_id":"","url":"https://api.github.com/users/aphearin","html_url":"https://github.com/aphearin","followers_url":"https://api.github.com/users/aphearin/followers","following_url":"https://api.github.com/users/aphearin/following{/other_user}","gists_url":"https://api.github.com/users/aphearin/gists{/gist_id}","starred_url":"https://api.github.com/users/aphearin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphearin/subscriptions","organizations_url":"https://api.github.com/users/aphearin/orgs","repos_url":"https://api.github.com/users/aphearin/repos","events_url":"https://api.github.com/users/aphearin/events{/privacy}","received_events_url":"https://api.github.com/users/aphearin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/halotools/labels/feature%20request","name":"feature request","color":"d4c5f9"},{"url":"https://api.github.com/repos/astropy/halotools/labels/mock-observables","name":"mock-observables","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"aphearin","id":6951595,"avatar_url":"https://avatars.githubusercontent.com/u/6951595?v=3","gravatar_id":"","url":"https://api.github.com/users/aphearin","html_url":"https://github.com/aphearin","followers_url":"https://api.github.com/users/aphearin/followers","following_url":"https://api.github.com/users/aphearin/following{/other_user}","gists_url":"https://api.github.com/users/aphearin/gists{/gist_id}","starred_url":"https://api.github.com/users/aphearin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphearin/subscriptions","organizations_url":"https://api.github.com/users/aphearin/orgs","repos_url":"https://api.github.com/users/aphearin/repos","events_url":"https://api.github.com/users/aphearin/events{/privacy}","received_events_url":"https://api.github.com/users/aphearin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/astropy/halotools/milestones/3","html_url":"https://github.com/astropy/halotools/milestones/v0.2","labels_url":"https://api.github.com/repos/astropy/halotools/milestones/3/labels","id":1630679,"number":3,"title":"v0.2","description":"This feature will be part of Halotools v0.2, the second release of the code. ","creator":{"login":"aphearin","id":6951595,"avatar_url":"https://avatars.githubusercontent.com/u/6951595?v=3","gravatar_id":"","url":"https://api.github.com/users/aphearin","html_url":"https://github.com/aphearin","followers_url":"https://api.github.com/users/aphearin/followers","following_url":"https://api.github.com/users/aphearin/following{/other_user}","gists_url":"https://api.github.com/users/aphearin/gists{/gist_id}","starred_url":"https://api.github.com/users/aphearin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphearin/subscriptions","organizations_url":"https://api.github.com/users/aphearin/orgs","repos_url":"https://api.github.com/users/aphearin/repos","events_url":"https://api.github.com/users/aphearin/events{/privacy}","received_events_url":"https://api.github.com/users/aphearin/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":8,"state":"open","created_at":"2016-03-08T14:41:47Z","updated_at":"2016-04-18T20:49:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-04-18T20:03:11Z","updated_at":"2016-04-19T01:01:15Z","closed_at":null,"body":"When performing splashback-type calculations, or cluster velocity profiles, it is natural to attempt to count pairs with respect to halo-centric distances, as opposed to fixed absolute distances. In particular, one might want to count pairs of points with respect to *r/Rhalo*, as opposed to just *r*. Currently, there is no halotools feature that permits such counting. It seems natural to include this feature as an additional `wfunc` option in our formalism for calculating marked correlation functions, don't you think @duncandc?\r\n\r\nCC @surhudm, @BenediktDiemer, and @a-kravtsov, who might find such ability useful in their work, and may have suggestions for alternative strategies that they have already implemented. "},"comment":{"url":"https://api.github.com/repos/astropy/halotools/issues/comments/211661245","html_url":"https://github.com/astropy/halotools/issues/472#issuecomment-211661245","issue_url":"https://api.github.com/repos/astropy/halotools/issues/472","id":211661245,"user":{"login":"manodeep","id":3004941,"avatar_url":"https://avatars.githubusercontent.com/u/3004941?v=3","gravatar_id":"","url":"https://api.github.com/users/manodeep","html_url":"https://github.com/manodeep","followers_url":"https://api.github.com/users/manodeep/followers","following_url":"https://api.github.com/users/manodeep/following{/other_user}","gists_url":"https://api.github.com/users/manodeep/gists{/gist_id}","starred_url":"https://api.github.com/users/manodeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manodeep/subscriptions","organizations_url":"https://api.github.com/users/manodeep/orgs","repos_url":"https://api.github.com/users/manodeep/repos","events_url":"https://api.github.com/users/manodeep/events{/privacy}","received_events_url":"https://api.github.com/users/manodeep/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T01:01:14Z","updated_at":"2016-04-19T01:01:14Z","body":"@surhudm The problem is that would require re-gridding the entire particle set for each halo. It's much better to use the largest rmax you might possibly want, say 10 Mpc, and then return all pairs. That list can trivially be pruned to the appropriate halo-dependent rmax. "}}