Mercurial > hg > nsaunier > traffic-intelligence
diff python/moving.py @ 107:916678481896
corrected bug for TimeInterval interation and added corresponding test
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 15 Jul 2011 02:32:34 -0400 |
| parents | 9844c69d8fa2 |
| children | 6efe470ea5e5 |
line wrap: on
line diff
--- a/python/moving.py Thu Jul 14 20:05:01 2011 -0400 +++ b/python/moving.py Fri Jul 15 02:32:34 2011 -0400 @@ -10,8 +10,6 @@ __metaclass__ = type -#class MovingObject: - class Interval: '''Generic Interval''' def __init__(self, first=0, last=-1, revert = False): @@ -70,7 +68,7 @@ return self.first+i def __iter__(self): - self.iterInstantNum = 0 + self.iterInstantNum = -1 return self def next(self):
