Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
maxeeem committed Dec 20, 2023
1 parent 8d2005e commit c1ad5de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynars/NARS/DataStructures/_py/Bag.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, capacity: int, n_buckets: int = None, take_in_order: bool = T

self.levels = tuple(list() for i in range(self.n_levels)) # initialize buckets between 0 and capacity

self.currenCounter = 0
self.currentCounter = 0
self.levelIndex = capacity % self.n_levels

# self.buckets = self.Depq(maxlen=self.n_buckets)
Expand All @@ -74,7 +74,7 @@ def map_priority(priority: float):

def take(self, remove = True) -> Item:
if len(self) == 0: return None
if self._is_current_level_empty() or self.currenCounter == 0:
if self._is_current_level_empty() or self.currentCounter == 0:
self.pointer = self.distributor.pick(self.levelIndex)
self.levelIndex = self.distributor.next(self.levelIndex)
while self._is_current_level_empty():
Expand All @@ -97,7 +97,7 @@ def take(self, remove = True) -> Item:
else:
item = self.levels[self.pointer][idx]

self.currenCounter = idx
self.currentCounter = idx

return item

Expand Down

0 comments on commit c1ad5de

Please sign in to comment.