make variables sympy Symbols + more general names

This commit is contained in:
Marcell Vazquez-Chanlatte 2016-07-08 20:40:53 -07:00
parent 7a73554525
commit fc6be7b80b
2 changed files with 6 additions and 4 deletions

2
stl.py
View file

@ -31,7 +31,7 @@ class LinEq(namedtuple("LinEquality", ["terms", "op", "const"])):
class Var(namedtuple("Var", ["kind", "id", "time"])):
def __repr__(self):
time_str = "[{}]".format(self.time)
return "{k}{i}{t}".format(k=self.kind.name, i=self.id, t=time_str)
return "{i}{t}".format(k=self.kind.name, i=self.id, t=time_str)
class Term(namedtuple("Term", ["coeff", "var"])):