add time index to atomic predicates

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-01-12 15:28:00 -08:00
parent 652fdde4d4
commit 395c87cbe6
2 changed files with 3 additions and 3 deletions

View file

@ -30,9 +30,9 @@ class AST(object):
class AtomicPred(namedtuple("AP", ["id"]), AST):
class AtomicPred(namedtuple("AP", ["id", "time"]), AST):
def __repr__(self):
return "{}".format(self.id)
return f"{self.id}[{self.time}]"
def children(self):
return []