# HG changeset patch # User Nicolas Saunier # Date 1307995836 14400 # Node ID 7da14f07e1f9a038c99e22d06aa01f7860bcc20e # Parent 19603b5fa57866dbea0e98fa19b614435b61e644 bug introduced by conversion of interval length to int diff -r 19603b5fa578 -r 7da14f07e1f9 python/event.py --- 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):