Closed manodeep closed 4 years ago
@lgarrison Please feel free to add any other code quality fixes onto this PR.
Before merging this PR, we need to add the bug fix for #192 into the CHANGES.rst
file.
@lgarrison When you have a chance, will you give the changes a look-over, particularly the duplicate ngb-cell check that I just added through e53bce3050139337dae5723a3601e707f1f37920.
Yes, I'll take a look in more detail soon! But just skimming the diff, it looks like we're doing a brute-force check for cell duplication. Is it not possible to simply construct the neighbor list without the duplicates to begin with?
On Sat, Aug 24, 2019 at 6:02 PM Manodeep Sinha notifications@github.com wrote:
@lgarrison https://github.com/lgarrison When you have a chance, will you give the changes a look-over, particularly the duplicate ngb-cell check that I just added through e53bce3 https://github.com/manodeep/Corrfunc/commit/e53bce3050139337dae5723a3601e707f1f37920 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/manodeep/Corrfunc/pull/189?email_source=notifications&email_token=ABLA7S63L5CCFH57YY2NATTQGGVXBA5CNFSM4H2VUU42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CIIPA#issuecomment-524583996, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLA7S72P7IFWZ3Z3WHL2HDQGGVXBANCNFSM4H2VUU4Q .
You could almost certainly make the duplication check better. Because that check takes so little time and is likely to come up under very special circumstances, I opted for the brute-force check. Happy to have a brainstorm to see if we can improve the check.
@lgarrison Will you please take a look at this PR and let me know what you think? We have accumulated a few updates for v2.3.2
Agreed! We need to either add the threads within that generate_cell_pairs
or incorporate the async model to generate and consume the cell-pairs
Hello @manodeep! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Corrfunc/utils.py
:Comment last updated at 2019-10-09 21:06:10 UTC