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

Avoid panic when k for k-neighbor search is zero #33

Merged
merged 1 commit into from Aug 24, 2020
Merged

Conversation

msk
Copy link
Member

@msk msk commented Aug 22, 2020

Fixes a panic in BallTree::query when k = 0.

@codecov
Copy link

codecov bot commented Aug 22, 2020

Codecov Report

Merging #33 into master will increase coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   92.63%   92.74%   +0.10%     
==========================================
  Files           3        3              
  Lines         421      427       +6     
==========================================
+ Hits          390      396       +6     
  Misses         31       31              
Impacted Files Coverage Δ
src/ball_tree.rs 93.82% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77a89cf...2391ed0. Read the comment docs.

@minshao minshao merged commit ae234fc into master Aug 24, 2020
@minshao minshao deleted the zero-query branch August 24, 2020 22:33
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.

None yet

2 participants