Mercurial Hosting > traffic-intelligence
changeset 702:f0a897d7f3a5 dev
corrected bug when loading features with objects
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 20 Jul 2015 15:36:48 -0400 |
parents | 4cc56ff82c3c |
children | bee0e7407af7 |
files | python/storage.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/storage.py Fri Jul 17 18:00:00 2015 -0400 +++ b/python/storage.py Mon Jul 20 15:36:48 2015 -0400 @@ -422,7 +422,7 @@ nFeatures = 0 for obj in objects: nFeatures = max(nFeatures, max(obj.featureNumbers)) - features = loadTrajectoriesFromSqlite(filename, 'feature', nFeatures) + features = loadTrajectoriesFromSqlite(filename, 'feature', nFeatures+1) for obj in objects: obj.setFeatures(features)