u1234x1234 / pynanoflann

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

Fix deprication warning #7

Closed CCInc closed 3 years ago

CCInc commented 3 years ago

Return a regular list from radius_neighbors instead of an array-of-arrays, which gets rid of the message:

/home/rock/miniconda3/envs/tp3d/lib/python3.8/site-packages/pynanoflann/nanoflann.py:106: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray

codecov-commenter commented 3 years ago

Codecov Report

Merging #7 (4681b54) into master (3e94469) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #7   +/-   ##
=======================================
  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 3e94469...4681b54. Read the comment docs.

u1234x1234 commented 3 years ago

Thank you for the contribution!