Closed felipeek closed 2 years ago
Complete stack:
Stacktrace:
[1] getindex
@ ./array.jl:861 [inlined]
[2] first
@ ./abstractarray.jl:398 [inlined]
[3] |>
@ ./operators.jl:966 [inlined]
[4] _broadcast_getindex_evalf
@ ./broadcast.jl:670 [inlined]
[5] _broadcast_getindex
@ ./broadcast.jl:643 [inlined]
[6] #29
@ ./broadcast.jl:1075 [inlined]
[7] ntuple
@ ./ntuple.jl:49 [inlined]
[8] copy
@ ./broadcast.jl:1075 [inlined]
[9] materialize
@ ./broadcast.jl:860 [inlined]
[10] nn(tree::KDTree{StaticArrays.SVector{3, Float64}, Euclidean, Float64}, points::Vector{Float64}, skip::var"#5#6")
@ NearestNeighbors ~/.julia/packages/NearestNeighbors/VZzTb/src/knn.jl:66
[11] top-level scope
@ In[110]:6
[12] eval
@ ./boot.jl:373 [inlined]
[13] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1196
The knn
function works fine, so I will use that for now
closing as this was already reported in https://github.com/KristofferC/NearestNeighbors.jl/issues/127
It seems there is a bug with the skip function.
This code throws:
I'm using the latest version of the package [0.4.11]