Mercurial Hosting > traffic-intelligence
changeset 331:40790d93200e
corrected a bug for Trajectory initialization
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jun 2013 08:56:54 -0400 |
parents | 00800ebae698 |
children | a6ca86107f27 |
files | python/moving.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 00800ebae698 -r 40790d93200e python/moving.py --- a/python/moving.py Thu Jun 13 23:05:28 2013 -0400 +++ b/python/moving.py Fri Jun 14 08:56:54 2013 -0400 @@ -339,7 +339,7 @@ The class is iterable''' def __init__(self, positions=None): - if positions: + if positions != None: self.positions = positions else: self.positions = [[],[]]