Skip to content

Commit

Permalink
Merge pull request #71 from opennars/OpWithoutArgFix
Browse files Browse the repository at this point in the history
Update: NAR.py: Little fix in case that arg-free operators are used w…
  • Loading branch information
patham9 authored Jun 23, 2020
2 parents fee8867 + 7a5886c commit 3b599f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misc/Python/NAR.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def parseTask(s):
return M

def parseExecution(e):
if "args " not in e:
return {"operator" : e.split(" ")[0], "arguments" : []}
return {"operator" : e.split(" ")[0], "arguments" : e.split("args ")[1][1:-1].split(" * ")[1]}

def GetRawOutput():
Expand Down

0 comments on commit 3b599f8

Please sign in to comment.