Skip to content

Commit

Permalink
feat(performance): remove from store the orders that isnt active or i…
Browse files Browse the repository at this point in the history
…s canceled because it takes a lot of time!
  • Loading branch information
yakir4123 committed May 24, 2024
1 parent c1a0012 commit 3b588d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jesse/libs/dynamic_numpy_array/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def append_multiple(self, items: np.ndarray) -> None:
def delete(self, index: int, axis=None) -> None:
self.array = np.delete(self.array, index, axis=axis)
self.index -= 1
if self.index == 0:
if self.index == -1:
new_bucket = np.zeros(self.shape)
self.array = np.concatenate((self.array, new_bucket), axis=0)

Expand Down

0 comments on commit 3b588d3

Please sign in to comment.