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

Code quality fixes #189

Merged
merged 15 commits into from
Oct 11, 2019
Merged

Code quality fixes #189

merged 15 commits into from
Oct 11, 2019

Conversation

manodeep
Copy link
Owner

No description provided.

@pep8speaks
Copy link

pep8speaks commented Jun 22, 2019

Hello @manodeep! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 608:80: E501 line too long (80 > 79 characters)
Line 1012:70: E502 the backslash is redundant between brackets
Line 1013:69: E502 the backslash is redundant between brackets

Comment last updated at 2019-10-09 21:06:10 UTC

Repository owner deleted a comment Jun 22, 2019
Repository owner deleted a comment Jun 22, 2019
Repository owner deleted a comment Jun 23, 2019
Repository owner deleted a comment Jun 23, 2019
Repository owner deleted a comment Jun 23, 2019
Repository owner deleted a comment Jun 25, 2019
Repository owner deleted a comment Jun 26, 2019
Repository owner deleted a comment Jul 11, 2019
@manodeep manodeep added this to the v2.3.2 milestone Jul 11, 2019
Repository owner deleted a comment Jul 11, 2019
@manodeep manodeep requested a review from lgarrison July 12, 2019 01:48
@manodeep
Copy link
Owner Author

@lgarrison Please feel free to add any other code quality fixes onto this PR.

Repository owner deleted a comment Aug 23, 2019
@manodeep
Copy link
Owner Author

Before merging this PR, we need to add the bug fix for #192 into the CHANGES.rst file.

@manodeep
Copy link
Owner Author

@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.

@lgarrison
Copy link
Collaborator

lgarrison commented Aug 24, 2019 via email

@manodeep
Copy link
Owner Author

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.

Repository owner deleted a comment Oct 9, 2019
@manodeep
Copy link
Owner Author

@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

Copy link
Collaborator

@lgarrison lgarrison left a 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.

@manodeep
Copy link
Owner Author

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

@manodeep manodeep merged commit 5c5cd4a into master Oct 11, 2019
@manodeep manodeep deleted the code_quality_fixes branch October 11, 2019 17:56
manodeep added a commit that referenced this pull request Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants