Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 828:14e4ad7c7420
work on merging data for synchronized views
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 28 Jun 2016 17:18:45 -0400 |
parents | 21f10332c72b |
children | aa98e773ac91 |
line wrap: on
line diff
--- a/python/moving.py Tue Jun 28 15:55:56 2016 -0400 +++ b/python/moving.py Tue Jun 28 17:18:45 2016 -0400 @@ -98,10 +98,11 @@ '''Temporal interval: set of instants at fixed time step, between first and last, included For example: based on frame numbers (hence the modified length method) - It may be modified directly by setting first and last''' + It may be modified directly by setting first and last + It also (mostly) works with datetime.datetime''' - def __init__(self, first=0, last=-1): - super(TimeInterval, self).__init__(first, last, False) + def __init__(self, first=0, last=-1, revert = False): + super(TimeInterval, self).__init__(first, last, revert) @staticmethod def fromInterval(inter):