Skip to content

Commit

Permalink
make sure all values in the tree even in compressed leaves are ordered
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur authored and jameshawkes committed Sep 18, 2024
1 parent cbd9524 commit 34e550f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions polytope/datacube/tensor_index_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def add_child(self, node):
def add_value(self, value):
new_values = list(self.values)
new_values.append(value)
new_values.sort()
self.values = tuple(new_values)

def create_child(self, axis, value, next_nodes):
Expand Down

0 comments on commit 34e550f

Please sign in to comment.