-
Notifications
You must be signed in to change notification settings - Fork 53
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
BUG DDrppi buggy for cross-corr in periodic spaces #210
Comments
Thanks for the bug report @beckermr - let me check whether I can reproduce it. I did have a couple of questions though - i) Does the bug still appear if you reduce zmax to a value smaller than Lbox/2, say 55 ? and ii) Can you reproduce the bug with Corrfunc installed from source/pip? (Related, I thought that the conda installed Corrfunc was called |
Just confirming that I can run your script and get the same output; thanks
for making the minimal reproducer! Haven't had a chance to track down the
bug yet.
…On Tue, Jan 28, 2020 at 3:04 PM Manodeep Sinha ***@***.***> wrote:
Thanks for the bug report @beckermr <https://github.com/beckermr> - let
me check whether I can reproduce it. I did have a couple of questions
though - i) Does the bug still appear if you reduce zmax to a value smaller
than Lbox/2, say 55 ? and ii) Can you reproduce the bug with Corrfunc
installed from source/pip? (Related, I thought that the conda installed
Corrfunc was called corrfunc - is that not the case?)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#210?email_source=notifications&email_token=ABLA7S6STYSQOINX2HARYGTRACFWLA5CNFSM4KMVBGQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKEWPHQ#issuecomment-579430302>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLA7S3JT5UZ7TAWWHTCM4TRACFWLANCNFSM4KMVBGQA>
.
--
Lehman Garrison <[email protected]>
Flatiron Research Fellow, Cosmology X Data Science Group
Center for Computational Astrophysics, Flatiron Institute
lgarrison.github.io
|
@manodeep yes I can reproduce the bug in both of those cases. |
I suspect this is connected to the relative size of rmax and zmax to Lbox. For instance, if I change (xbin, ybin, zbin) refine-factors to @lgarrison At minimum, we will need a separate test case (from a brute force output) to test these sorts of large separations. |
If I disable the duplicate cell-checking in here, then the bug disappears. However, we need to work through the logic and make sure we are not double-counting under any circumstances... |
@manodeep is it possible that we we are missing particles when we do duplicate cell elimination because we are only considering one "wrapping" direction? I think we need to consider both, the question is how to do so without double counting pairs. Probably the answer lies in some restriction llike Rmax < CellSize/2... |
Once this is resolved, do y'all have a brute force pair-counter test in the unit-testing to protect against regression? I find it's really hard to fool those kind of tests. Let me know in case that would be useful for me to pass along your way. |
@lgarrison That is definitely what is happening here. Consider zmax = Lbox/2, and we have 2 bins. In that case, the top half of @aphearin Thanks for the offer - we will absolutely need to add tests for large Rmax/zmax for all the pair-counters. @lgarrison In the meantime, should we revert the previous change (introduced in v2.3.2) for allowing large ratios of (Rmax, zmax)/Lboox? |
@lgarrison If we revert the change, then Corrfunc will report an error for |
Thank you! |
General information
Issue description
I am computing the pairs by hand and not getting what corrfunc reports.
Expected behavior
It should match the brute force computation.
Actual behavior
It doesn't match it.
What have you tried so far?
A bunch of stuff to try and see if it will miss one particle. It does not, so the bug is more subtle. It does not appear to be a bin edge thing.
Minimal failing example
This script outputs
The text was updated successfully, but these errors were encountered: