more plumbing

Commit 73b124160911 · Nicolas Saunier · 2018-06-13 14:55 -0400

Changeset
73b1241609111283f3b124f0fcf42e7e7504b2f4

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/python/storage.py b/python/storage.py
--- a/python/storage.py
+++ b/python/storage.py
@@ -1427,11 +1427,11 @@
     # override video and database filenames if present on command line
     # if not absolute, make all filenames relative to the location of the configuration filename
     if args.videoFilename is not None:
-        videoFilename = utils.getRelativeFilename(parentPath, args.videoFilename)
+        videoFilename = args.videoFilename
     else:
         videoFilename = params.videoFilename
     if args.databaseFilename is not None:
-        databaseFilename = utils.getRelativeFilename(parentPath, args.databaseFilename)
+        databaseFilename = args.databaseFilename
     else:
         databaseFilename = params.databaseFilename
 
diff --git a/scripts/process.py b/scripts/process.py
--- a/scripts/process.py
+++ b/scripts/process.py
@@ -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: