diff python/storage.py @ 382:ba813f148ade

development for clustering
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 21 Jul 2013 10:23:15 -0400
parents 2aed569f39e7
children 12be4a0cb9aa
line wrap: on
line diff
--- a/python/storage.py	Fri Jul 19 11:58:35 2013 -0400
+++ b/python/storage.py	Sun Jul 21 10:23:15 2013 -0400
@@ -17,7 +17,7 @@
 # Sqlite
 #########################
 
-def saveTrajectoriesToSqlite(objects, outFilename, trajectoryType, objectNumbers = -1):
+def writeTrajectoriesToSqlite(objects, outFilename, trajectoryType, objectNumbers = -1):
     """
     This function writers trajectories to a specified sqlite file
     @param[in] objects -> a list of trajectories
@@ -402,6 +402,13 @@
         f.write('{}\n'.format(x))
     f.close()
 
+def loadListStrings(filename):
+    f = utils.openCheck(filename, 'r')
+    result = [l.strip() for l in f]
+    f.close()
+    return result
+        
+
 if __name__ == "__main__":
     import doctest
     import unittest