Mercurial Hosting > traffic-intelligence
diff python/ubc_utils.py @ 161:41a5853ec495
added utility to offset the time intervales of complete trajectory files
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 20 Sep 2011 13:49:01 -0400 |
parents | 48e3de4acb65 |
children | ea2a8e8e4e77 |
line wrap: on
line diff
--- a/python/ubc_utils.py Mon Sep 19 16:43:28 2011 -0400 +++ b/python/ubc_utils.py Tue Sep 20 13:49:01 2011 -0400 @@ -80,8 +80,7 @@ print('read {0} objects'.format(objNum)) def modifyTrajectoryFile(modifyLines, filenameIn, filenameOut): - '''Reads filenameIn, replaces the first line with the result of modifyLines and writes the result in filenameOut''' - #sortByNum(objects) + '''Reads filenameIn, replaces the lines with the result of modifyLines and writes the result in filenameOut''' fileIn = utils.openCheck(filenameIn, 'r', True) fileOut = utils.openCheck(filenameOut, "w", True)