Skip to content

Commit

Permalink
Update Memory.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrock4t committed Jan 18, 2024
1 parent 40cc2cb commit 86a75ed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pynars/NARS/DataStructures/_py/Memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 86a75ed

Please sign in to comment.