# HG changeset patch # User Nicolas Saunier # Date 1477773245 14400 # Node ID 07c5eab11eba5026a3826324d71c126122dcd118 # Parent a8de3c93f6b7d51ac345498b2167b0ad9914340f fixing bug, thanks to Ryan Louie diff -r a8de3c93f6b7 -r 07c5eab11eba python/prediction.py --- 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]