u1234x1234 / pynanoflann

Unofficial python wrapper to the nanoflann k-d tree
BSD 2-Clause "Simplified" License
34 stars 8 forks source link

Ensure consistent dtype and shape on output list #8

Closed CCInc closed 3 years ago

CCInc commented 3 years ago

One more quick fix.. If an idx list was empty, numpy will default it to float64 rather than an integer. Also I removed the squeeze, is there a reason that's there? If you want to keep it we should squeeze the idx list as well :)

codecov-commenter commented 3 years ago

Codecov Report

Merging #8 (bf82d7c) into master (4681b54) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files           2        2           
  Lines          90       90           
=======================================
  Hits           87       87           
  Misses          3        3           
Impacted Files Coverage Δ
pynanoflann/nanoflann.py 96.59% <100.00%> (ø)

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 4681b54...bf82d7c. Read the comment docs.