You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since KDTree.insert only checks the value's 'axis', any override types don't exactly follow.
To Reproduce
Steps to reproduce the behavior:
Create a class that extends KDTreeType and has two values, one which __getitem__ looks at.
Insert two instances of this class where said value is equal but the objects are not equivalent.
The tree will only insert the first object.
Expected behavior
KDTree.insert should first check for equality and do nothing if equality is satisfied. One of comparisons on the axis should include when the 'axis' value is equal (I suggest the right subtree).
Desktop (please complete the following information):
Python: Version independent
OS: OS independent
Version: 0.1.5
The text was updated successfully, but these errors were encountered:
Describe the bug
Since
KDTree.insert
only checks the value's 'axis', any override types don't exactly follow.To Reproduce
Steps to reproduce the behavior:
KDTreeType
and has two values, one which__getitem__
looks at.Expected behavior
KDTree.insert
should first check for equality and do nothing if equality is satisfied. One of comparisons on the axis should include when the 'axis' value is equal (I suggest the right subtree).Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: