comparison scripts/safety-analysis.py @ 896:6624484c0d55

modification to make point set prediction work
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 01 Jun 2017 17:55:40 -0400
parents e2452abba0e7
children 063d1267585d
comparison
equal deleted inserted replaced
895:739acd338cc0 896:6624484c0d55
54 # params.minExtremeAcceleration, 54 # params.minExtremeAcceleration,
55 # params.maxExtremeAcceleration, 55 # params.maxExtremeAcceleration,
56 # params.maxExtremeSteering, 56 # params.maxExtremeSteering,
57 # params.useFeaturesForPrediction) 57 # params.useFeaturesForPrediction)
58 58
59 objects = storage.loadTrajectoriesFromSqlite(params.databaseFilename, 'object', args.nObjects, withFeatures = params.useFeaturesForPrediction) 59 objects = storage.loadTrajectoriesFromSqlite(params.databaseFilename, 'object', args.nObjects, withFeatures = (params.useFeaturesForPrediction or (predictionMethod == 'ps')))
60 # if params.useFeaturesForPrediction: 60 # if params.useFeaturesForPrediction:
61 # features = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'feature') # needed if normal adaptation 61 # features = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'feature') # needed if normal adaptation
62 # for obj in objects: 62 # for obj in objects:
63 # obj.setFeatures(features) 63 # obj.setFeatures(features)
64 64