diff python/moving.py @ 280:8d44fb1756bc

removed small error
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 21 Dec 2012 17:06:34 -0500
parents 05c9b0cb8202
children f2cf16ad798f
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():