# HG changeset patch # User Nicolas Saunier # Date 1307997976 14400 # Node ID 857bcd41e9a22cb456c8d414a7cf80a8f84bf9cd # Parent 7da14f07e1f9a038c99e22d06aa01f7860bcc20e bug introduced by conversion of interval length to int diff -r 7da14f07e1f9 -r 857bcd41e9a2 python/event.py --- a/python/event.py Mon Jun 13 16:10:36 2011 -0400 +++ b/python/event.py Mon Jun 13 16:46:16 2011 -0400 @@ -39,7 +39,7 @@ '''Computes the collision course cosine only if the cosine is positive''' collisionCourseDotProduct = [0]*int(self.timeInterval.length()) collisionCourseCosine = {} - distances = [0]*self.timeInterval.length() + distances = [0]*int(self.timeInterval.length()) for i,instant in enumerate(self.timeInterval): deltap = self.movingObject1.getPositionAtInstant(instant)-self.movingObject2.getPositionAtInstant(instant) deltav = self.movingObject2.getVelocityAtInstant(instant)-self.movingObject1.getVelocityAtInstant(instant)