comparison python/utils.py @ 391:03dbecd3a887

modified feature grouping to return vectors of pointers to feature trajectories
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 25 Jul 2013 18:58:55 -0400
parents 6d26dcc7bba0
children 6fba1ab040f1
comparison
equal deleted inserted replaced
389:6d26dcc7bba0 391:03dbecd3a887
540 'deletes the table with names in tableNames' 540 'deletes the table with names in tableNames'
541 import sqlite3 541 import sqlite3
542 try: 542 try:
543 cursor = connection.cursor() 543 cursor = connection.cursor()
544 for tableName in tableNames: 544 for tableName in tableNames:
545 cursor.execute('DROP TABLE '+tableName) 545 cursor.execute('DROP TABLE IF EXISTS '+tableName)
546 except sqlite3.OperationalError as error: 546 except sqlite3.OperationalError as error:
547 printDBError(error) 547 printDBError(error)
548 548
549 ######################### 549 #########################
550 # running tests 550 # running tests