-
Notifications
You must be signed in to change notification settings - Fork 157
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
[BUG] quadtree_on_points not constant behavior #326
Comments
Hi @msalazarcgeo , thanks for the issue. Any chance you can provide code to reproduce? |
I have made a jupyter-lab notebook reproducing the behaviour, I don't know if this is is good for you or you want me to create a pure python script reproducing. |
Here is a code that shows the main problem (the quadtree is not constant on the same set of points )
Due to the use of the random function the output will be different (I didn't use the "seed" function ) but it show the problem meaning that the first and second My believe is that for some reason the quadtree is not pointing correctly to the memory address of the inner leaves. |
@msalazarcgeo Thanks for the bug report. Can you confirm which version you were using? we fixed a related bug for 0.17, which should be used for testing. |
@zhangjianting I will check on the 0.17 version to confirm the bug. |
@zhangjianting I have tested using a new environment with the 0.17 version. The result was better, meaning that the difference between the number of points in the leaves is closer between the quadtrees. But not the issue is not properly resolved, the number of points in the quadtrees should be the same for each. |
This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d. |
This issue has been labeled |
To create fast rasterization I wanted to use the quadtree_on_points, the data has 480631 points and a max_depht of 8, when I ran the function the resulting quadtree has 7720 points on the leaves, to calculate the number of points in all the leaves I use
quad_tree[quad_tree['is_quad']== False]['length'].sum()
and the number of nodes in the tree is 611. This is wrong, if the quadtree is recalculated then the result is right, meaning that the number of points in the leaves is 480631 and the size of the tree is has changed to what seems to be the proper tree.This is not an issue to be critical or something like that, I can solve my problem by simply recalculating the quadtree. I just want to inform you about the behavior and thank you for the amazing tool that this library is.
The text was updated successfully, but these errors were encountered: