diff --git a/pynars/NARS/DataStructures/_py/Memory.py b/pynars/NARS/DataStructures/_py/Memory.py index aeafd28..1e348c9 100644 --- a/pynars/NARS/DataStructures/_py/Memory.py +++ b/pynars/NARS/DataStructures/_py/Memory.py @@ -45,9 +45,6 @@ def accept(self, task: Task): concept: Concept = Concept._conceptualize(self.concepts, task.term, conceptualize_budget) if concept is None: return None # The memroy is full. The concept fails to get into the memory. - # take out the concept, to update the budget - concept = self.concepts.take_by_key(key=task.term,remove=True) - # then process each task according to its type task_revised, goal_derived, answers_question, answer_quest = None, None, None, None if task.is_judgement: @@ -89,9 +86,6 @@ def accept(self, task: Task): # Build the concepts corresponding to the terms of those components within the task. concept.accept(task, self.concepts, conceptualize=False) - # put back the concept, to update the budget - self.concepts.put_back(item=concept,key=task.term) - if Enable.temporal_reasoning or Enable.operation: # if (!task.sentence.isEternal() && !(task.sentence.term instanceof Operation)) { # globalBuffer.eventInference(task, cont, false); //can be triggered by Buffer itself in the future