Mercurial Hosting > traffic-intelligence
changeset 94:7da14f07e1f9
bug introduced by conversion of interval length to int
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 13 Jun 2011 16:10:36 -0400 |
parents | 19603b5fa578 |
children | 857bcd41e9a2 |
files | python/event.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/event.py Mon Jun 13 14:15:08 2011 -0400 +++ b/python/event.py Mon Jun 13 16:10:36 2011 -0400 @@ -37,7 +37,7 @@ def computeIndicators(self): '''Computes the collision course cosine only if the cosine is positive''' - collisionCourseDotProduct = [0]*self.timeInterval.length() + collisionCourseDotProduct = [0]*int(self.timeInterval.length()) collisionCourseCosine = {} distances = [0]*self.timeInterval.length() for i,instant in enumerate(self.timeInterval):