comparison python/storage.py @ 246:583a2c4622f9

created new module for algorithms with function to extract speeds
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 17 Jul 2012 16:28:24 -0400
parents 93c26e45efd8
children 8ab76b95ee72
comparison
equal deleted inserted replaced
245:bd8ab323c198 246:583a2c4622f9
69 def loadTrajectoriesFromTable(connection, tableName, trajectoryType, objectNumbers = -1): 69 def loadTrajectoriesFromTable(connection, tableName, trajectoryType, objectNumbers = -1):
70 '''Loads trajectories (in the general sense) from the given table 70 '''Loads trajectories (in the general sense) from the given table
71 can be positions or velocities 71 can be positions or velocities
72 72
73 returns a moving object''' 73 returns a moving object'''
74 import sqlite3
75
74 cursor = connection.cursor() 76 cursor = connection.cursor()
75 77
76 try: 78 try:
77 if trajectoryType == 'feature': 79 if trajectoryType == 'feature':
78 if type(objectNumbers) == int: 80 if type(objectNumbers) == int: