changeset 860:07c5eab11eba

fixing bug, thanks to Ryan Louie <Ryan.Louie@students.olin.edu>
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sat, 29 Oct 2016 16:34:05 -0400
parents a8de3c93f6b7
children f9c9457b60c2
files python/prediction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/prediction.py	Fri Oct 21 16:02:46 2016 -0400
+++ b/python/prediction.py	Sat Oct 29 16:34:05 2016 -0400
@@ -415,7 +415,7 @@
 
     def generatePredictedTrajectories(self, obj, instant):
         predictedTrajectories = []
-        if self.useFeatures and obj.hadFeatures():
+        if self.useFeatures and obj.hasFeatures():
             features = [f for f in obj.getFeatures() if f.existsAtInstant(instant)]
             positions = [f.getPositionAtInstant(instant) for f in features]
             velocities = [f.getVelocityAtInstant(instant) for f in features]