-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix undefined variables #14
Conversation
Thanks for finding those! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #14 +/- ##
==========================================
- Coverage 89.46% 89.37% -0.09%
==========================================
Files 15 15
Lines 911 913 +2
==========================================
+ Hits 815 816 +1
- Misses 96 97 +1
☔ View full report in Codecov by Sentry. |
Usually JET.jl and Aqua.jl are best for this type of testing, although I don't know the best way to go about it right now ( |
Do you have an idea why it's failing on nightlies? |
I think I changed those tests in the other PR. It's something to do with Base.insert!(tree::RTree{T,N,SpatialElem{T,N,K,V}}, br::Rect{T,N}, id::Any, val::Any) where {T,N,K,V} =
insert!(tree, SpatialElem{T,N,K,V}(br, id, val))
Base.insert!(tree::RTree{T,N,SpatialElem{T,N,K,V}},
pt::Point{T,N}, id::Any, val::Any) where {T,N,K,V} =
insert!(tree, SpatialElem{T,N,K,V}(Rect(pt), id, val))
Base.insert!(tree::RTree{T,N,SpatialElem{T,N,Nothing,V}},
br::Union{Rect{T,N}, Point{T,N}}, val::Any) where {T,N,V} =
insert!(tree, br, nothing, val) where there is no longer a method error being thrown, so it keeps trying to insert and hits a |
| I wasn't able to figure out what "cannot convert a value to nothing for assignment" meant though. Should I try and bring the MethodError back? I didn't do so previously since I didn't really understand what the purpose of those tests were. Ah, I think I know what's going on. Your change from The spatial index unique leaf key has type K (typeparam). |
LGTM. I'll merge it if you don't plan to add more commits. |
No more commits, good to go |
Thanks again! I'll tag a new patch release now. |
There are some variables/functions that are not defined in the code:
This addresses the issues above.
I guess the
else
branch in_condense!
is just never reached? It would have bugged if it were ever reached (since both theif
andelse
branches in this branch had a bug), i.e. this part