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

nearest_neighbors search hanging on particular coordinate #18

Closed
asasama12 opened this issue Nov 2, 2021 · 3 comments
Closed

nearest_neighbors search hanging on particular coordinate #18

asasama12 opened this issue Nov 2, 2021 · 3 comments

Comments

@asasama12
Copy link

Having a strange issue where the nearest neighbor search gets stuck on a specific point (index 147 in this dataset), but only if that point is included in a set. If I run the nearest neighbor search on only that point, it successfully runs. I've converted the coordinates to float64 as that posed an issue in the past.

The point that is giving an issue is circled in the bottom image, I noticed it is far from all other points compared to all other data points. Not sure if that's related or coincidence.

Index 147 runs by itself but does not run when included with index 146
image
index 147 is far from other points
image

@mchalela
Copy link
Owner

mchalela commented Nov 2, 2021

Hello @asasama12 , I'm not sure a priori what could be causing the problem. Could you please:
a) comment what version of Grispy are you using?
b) provide a file with your data coords to reproduce the problem?

We are working on a new release, so if we identify the problem we can include a fix to this issue in the new release.

@mchalela mchalela added the bug Something isn't working label Nov 2, 2021
@asasama12
Copy link
Author

updated from 0.0.4 to 0.1.0 and it works now. Here's the file if you want to look at it, but issue has been resolved. Thanks!
data.csv

@mchalela
Copy link
Owner

mchalela commented Nov 3, 2021

I'm glad to hear that!

Closing this

@mchalela mchalela closed this as completed Nov 3, 2021
@mchalela mchalela removed the bug Something isn't working label Nov 3, 2021
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

No branches or pull requests

2 participants