changeset 888:40994bb43148

corrected bug
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 22 Mar 2017 10:50:39 -0400
parents e2452abba0e7
children 4ea296ee1ae2
files python/prediction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/prediction.py	Wed Mar 22 10:44:24 2017 -0400
+++ b/python/prediction.py	Wed Mar 22 10:50:39 2017 -0400
@@ -571,7 +571,7 @@
         if intersection is not None:
             ttc = moving.Point.timeToCollision(p1, p2, v1, v2, collisionDistanceThreshold)
             if ttc is not None:
-                collisionPoints = SafetyPoint(intersection, 1., ttc)
+                collisionPoints = [SafetyPoint(intersection, 1., ttc)]
             else:
                 pass # compute pPET