comparison 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
comparison
equal deleted inserted replaced
1025:6ba30b259525 1026:73b124160911
75 ################################# 75 #################################
76 # Delete 76 # Delete
77 ################################# 77 #################################
78 if args.delete is not None: 78 if args.delete is not None:
79 if args.delete == 'feature': 79 if args.delete == 'feature':
80 pass 80 response = input('Are you sure you want to delete the tracking results (SQLite files) of all these sites (y/n)?')
81 if response == 'y':
82 for vs in videoSequences:
83 p = parentPath.absolute()/vs.getDatabaseFilename()
84 p.unlink()
81 elif args.delete in ['object', 'interaction']: 85 elif args.delete in ['object', 'interaction']:
82 #parser.add_argument('-t', dest = 'dataType', help = 'type of the data to remove', required = True, choices = ['object','interaction', 'bb', 'pois', 'prototype']) 86 #parser.add_argument('-t', dest = 'dataType', help = 'type of the data to remove', required = True, choices = ['object','interaction', 'bb', 'pois', 'prototype'])
83 for vs in videoSequences: 87 for vs in videoSequences:
84 storage.deleteFromSqlite(str(parentPath/vs.getDatabaseFilename()), args.delete) 88 storage.deleteFromSqlite(str(parentPath/vs.getDatabaseFilename()), args.delete)
85 89