Mercurial Hosting > traffic-intelligence
diff python/prediction.py @ 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 | 8b74a5176549 |
children | 8ba82b371eea |
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]