diff scripts/process.py @ 1026:73b124160911 v0.2

more plumbing
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 13 Jun 2018 14:55:22 -0400
parents a13f47c8931d
children cc5cb04b04b0
line wrap: on
line diff
--- a/scripts/process.py	Mon Jun 11 17:07:53 2018 -0400
+++ b/scripts/process.py	Wed Jun 13 14:55:22 2018 -0400
@@ -77,7 +77,11 @@
 #################################
 if args.delete is not None:
     if args.delete == 'feature':
-        pass
+        response = input('Are you sure you want to delete the tracking results (SQLite files) of all these sites (y/n)?')
+        if response == 'y':
+            for vs in videoSequences:
+                p = parentPath.absolute()/vs.getDatabaseFilename()
+                p.unlink()
     elif args.delete in ['object', 'interaction']:
         #parser.add_argument('-t', dest = 'dataType', help = 'type of the data to remove', required = True, choices = ['object','interaction', 'bb', 'pois', 'prototype'])
         for vs in videoSequences: