From c1ad5de4f97de7f272da77b109cf9112ab91cc77 Mon Sep 17 00:00:00 2001 From: Maxim Tarasov Date: Tue, 19 Dec 2023 16:23:23 -0800 Subject: [PATCH] fix typo --- pynars/NARS/DataStructures/_py/Bag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pynars/NARS/DataStructures/_py/Bag.py b/pynars/NARS/DataStructures/_py/Bag.py index 841fd989..80f3bf63 100644 --- a/pynars/NARS/DataStructures/_py/Bag.py +++ b/pynars/NARS/DataStructures/_py/Bag.py @@ -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) @@ -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(): @@ -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