From c7d5fc51cca8f49162dd1c2e41c8daed3d0e051c Mon Sep 17 00:00:00 2001 From: Patrick Hammer Date: Mon, 24 Jan 2022 08:20:56 +0100 Subject: [PATCH] Update: print fix fully working --- misc/Python/NAR.py | 2 +- src/Memory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/Python/NAR.py b/misc/Python/NAR.py index 333336bc..b3367b9f 100755 --- a/misc/Python/NAR.py +++ b/misc/Python/NAR.py @@ -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)} diff --git a/src/Memory.c b/src/Memory.c index 699e431a..3a69fcc0 100755 --- a/src/Memory.c +++ b/src/Memory.c @@ -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); }