-
Notifications
You must be signed in to change notification settings - Fork 637
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
WIP: nearest N particle search #3382
base: develop
Are you sure you want to change the base?
Conversation
@hmacdope I think if you get your head round how the results container is keeping track of the "best" N results, then how the cubeiter works the actual search function isn't that nasty tbh. It's currently failing because of a double free somewhere, so I think I've got my cython wrong somewhere but I'll track that down. |
Codecov Report
@@ Coverage Diff @@
## develop #3382 +/- ##
===========================================
+ Coverage 93.62% 93.63% +0.01%
===========================================
Files 176 176
Lines 22839 22915 +76
Branches 3225 3227 +2
===========================================
+ Hits 21382 21456 +74
- Misses 1406 1408 +2
Partials 51 51
Continue to review full report at Codecov.
|
Hello @richardjgowers! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
Yes, but KDTree won’t (ever) do periodic boundaries
…On Wed, Jan 12, 2022 at 11:42, Cédric Bouysset ***@***.***> wrote:
I'm a bit late to the party but doesn't the KDTree
<https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.cKDTree.html>
query
<https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.cKDTree.query.html>
from scipy already do what you need?
—
Reply to this email directly, view it on GitHub
<#3382 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGSGBZLPOUODOVAXRVCPDLUVVSJVANCNFSM5BQORAGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
grid_spacing = 4.0 | ||
|
||
if box is None: | ||
raise ValueError("TODO") |
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.
use KDTree as suggested by @cbouy ?
Fixes #
Changes made in this Pull Request:
PR Checklist