diff python/storage.py @ 647:458890c0437c

cleaned functions to lead bounding boxes (for display)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 15 Apr 2015 16:35:02 +0200
parents 6680a69d5bf3
children df9ddeaee4a6
line wrap: on
line diff
--- a/python/storage.py	Tue Apr 14 16:30:27 2015 +0200
+++ b/python/storage.py	Wed Apr 15 16:35:02 2015 +0200
@@ -554,6 +554,7 @@
     connection.close()
 
 def loadBoundingBoxTableForDisplay(filename):
+    '''Loads bounding boxes from bounding_boxes table for display over trajectories'''
     connection = sqlite3.connect(filename)
     cursor = connection.cursor()
     boundingBoxes = {} # list of bounding boxes for each instant
@@ -570,20 +571,6 @@
     connection.close()
     return boundingBoxes
 
-def loadBoundingBoxTable(filename):
-    connection = sqlite3.connect(filename)
-    cursor = connection.cursor()
-    boundingBoxes = []
-    
-    try:
-        pass
-    except sqlite3.OperationalError as error:
-        printDBError(error)
-        return boundingBoxes
-    connection.close()
-    return boundingBoxes
-
-
 #########################
 # txt files
 #########################