Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/storage.py @ 1254:a477ad82ab66
minor addition to drop tables
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 03 Apr 2024 11:38:16 -0400 |
| parents | ef68d4ba7dae |
| children | c0fe55a6b82f |
comparison
equal
deleted
inserted
replaced
| 1253:ef68d4ba7dae | 1254:a477ad82ab66 |
|---|---|
| 48 with sqlite3.connect(filename) as connection: | 48 with sqlite3.connect(filename) as connection: |
| 49 if dataType == 'object': | 49 if dataType == 'object': |
| 50 dropTables(connection, ['objects', 'objects_features']) | 50 dropTables(connection, ['objects', 'objects_features']) |
| 51 elif dataType == 'interaction': | 51 elif dataType == 'interaction': |
| 52 dropTables(connection, ['interactions', 'indicators']) | 52 dropTables(connection, ['interactions', 'indicators']) |
| 53 elif dataType == 'curvilinear': | |
| 54 dropTables(connection, ['curvilinear_positions']) | |
| 53 elif dataType == 'bb': | 55 elif dataType == 'bb': |
| 54 dropTables(connection, ['bounding_boxes']) | 56 dropTables(connection, ['bounding_boxes']) |
| 55 elif dataType == 'pois': | 57 elif dataType == 'pois': |
| 56 dropTables(connection, ['gaussians2d', 'objects_pois']) | 58 dropTables(connection, ['gaussians2d', 'objects_pois']) |
| 57 elif dataType == 'prototype': | 59 elif dataType == 'prototype': |
