Skip to content

Commit

Permalink
Update: print fix fully working
Browse files Browse the repository at this point in the history
  • Loading branch information
patham9 committed Jan 24, 2022
1 parent 7e85a67 commit c7d5fc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/Python/NAR.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def GetOutput():
lines = GetRawOutput()
executions = [parseExecution(l) for l in lines if l.startswith('^')]
inputs = [parseTask(l.split("Input: ")[1]) for l in lines if l.startswith('Input:')]
derivations = [parseTask(l.split("Derived: ")[1]) for l in lines if l.startswith('Derived:')]
derivations = [parseTask(l.split("Derived: ")[1]) for l in lines if l.startswith('Derived:') or l.startswith('Revised:')]
answers = [parseTask(l.split("Answer: ")[1]) for l in lines if l.startswith('Answer:')]
reason = parseReason("\n".join(lines))
return {"input": inputs, "derivations": derivations, "answers": answers, "executions": executions, "reason": reason, "raw": "\n".join(lines)}
Expand Down
2 changes: 1 addition & 1 deletion src/Memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void Memory_ProcessNewBeliefEvent(Event *event, long currentTime, double priorit
bool revision_happened = false;
c->belief = Inference_RevisionAndChoice(&c->belief, &eternal_event, currentTime, &revision_happened);
c->belief.creationTime = currentTime; //for metrics
if(input && event->occurrenceTime == OCCURRENCE_ETERNAL)
if(input)
{
Memory_printAddedEvent(event, priority, input, false, false, true);
}
Expand Down

0 comments on commit c7d5fc5

Please sign in to comment.