-
Notifications
You must be signed in to change notification settings - Fork 57
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
Code quality fixes #189
Code quality fixes #189
Conversation
Hello @manodeep! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-10-09 21:06:10 UTC |
@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 |
@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. |
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 ***@***.***> 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
<e53bce3>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#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 |
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! We'll want to keep an eye on the generate_cell_pairs()
time, though. I think it can dominate the gridlink time. For a somewhat extreme case of 1e8 particles in nmesh_[x|y|z] = 272
, I measure 11 sec in gridlink, 45 sec in generate_cell_pairs()
, and 46 sec pair counting.
Agreed! We need to either add the threads within that |
No description provided.