Mercurial Hosting > traffic-intelligence
changeset 280:8d44fb1756bc
removed small error
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 21 Dec 2012 17:06:34 -0500 |
parents | 3af4c267a7bf |
children | 4f012e3d881b |
files | python/moving.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/python/moving.py Thu Dec 20 18:04:05 2012 -0500 +++ b/python/moving.py Fri Dec 21 17:06:34 2012 -0500 @@ -49,11 +49,11 @@ def union(self, interval2): '''Smallest interval comprising self and interval2''' - return TimeInterval(min(self.first, interval2.first), max(self.last, interval2.last)) + return Interval(min(self.first, interval2.first), max(self.last, interval2.last)) def intersection(self, interval2): '''Largest interval comprised in both self and interval2''' - return TimeInterval(max(self.first, interval2.first), min(self.last, interval2.last)) + return Interval(max(self.first, interval2.first), min(self.last, interval2.last)) def distance(self, interval2): if not self.intersection(interval2).empty():