changeset 40:9f16aee24b7e

corrected bug for first and last of TimeInterval
author Nicolas Saunier <nico@confins.net>
date Wed, 19 May 2010 19:47:02 -0400
parents e47168f6b694
children eb78c6edc0c8
files python/moving.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/moving.py	Tue May 18 17:53:59 2010 -0400
+++ b/python/moving.py	Wed May 19 19:47:02 2010 -0400
@@ -118,10 +118,10 @@
         return self.timeInterval.empty() or not self.boudingPolygon
 
     def getFirstInstant(self):
-        return self.timeInterval.first()
+        return self.timeInterval.first
 
     def getLastInstant(self):
-        return self.timeInterval.first()
+        return self.timeInterval.last
 
 class Point:
     def __init__(self, x, y):