Commit e74a7392 authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

Cleanup scripts

parent 0d5ff04c
......@@ -18,8 +18,6 @@ def checkfiles(args):
db = Database()
r = db.objects(
directory=args.directory,
extension=args.extension,
protocol=args.protocol,
purposes=args.purposes,
#model_ids=args.model_ids,
......
......@@ -18,8 +18,6 @@ def dumplist(args):
db = Database()
r = db.objects(
directory=args.directory,
extension=args.extension,
protocol=args.protocol,
purposes=args.purposes,
#model_ids=args.model_ids,
......
......@@ -294,19 +294,12 @@ class Database(object):
"""
return tmodel_id
def objects(self, directory=None, extension=None, protocol=None,
purposes=None, model_ids=None, groups=None, classes=None,
languages=None, subworld=None):
def objects(self, protocol=None, purposes=None, model_ids=None, groups=None,
classes=None, languages=None, subworld=None):
"""Returns a set of Files for the specific query by the user.
Keyword Parameters:
directory
A directory name that will be prepended to the final filepath returned
extension
A filename extension that will be appended to the final filepath returned
protocol
One of the BANCA protocols ('P', 'G', 'Mc', 'Md', 'Ma', 'Ud', 'Ua').
......@@ -411,19 +404,12 @@ class Database(object):
return list(set(retval)) # To remove duplicates
def tobjects(self, directory=None, extension=None, protocol=None,
model_ids=None, groups=None, languages=None):
def tobjects(self, protocol=None, model_ids=None, groups=None, languages=None):
"""Returns a set of Files for enrolling T-norm models for score
normalization.
Keyword Parameters:
directory
A directory name that will be prepended to the final filepath returned
extension
A filename extension that will be appended to the final filepath returned
protocol
One of the BANCA protocols ('P', 'G', 'Mc', 'Md', 'Ma', 'Ud', 'Ua').
......@@ -454,18 +440,11 @@ class Database(object):
tgroups.append('dev')
return self.objects(directory, extension, protocol, 'enrol', model_ids, tgroups, 'client', languages)
def zobjects(self, directory=None, extension=None, protocol=None,
model_ids=None, groups=None, languages=None):
def zobjects(self, protocol=None, model_ids=None, groups=None, languages=None):
"""Returns a set of Files to perform Z-norm score normalization.
Keyword Parameters:
directory
A directory name that will be prepended to the final filepath returned
extension
A filename extension that will be appended to the final filepath returned
protocol
One of the BANCA protocols ('P', 'G', 'Mc', 'Md', 'Ma', 'Ud', 'Ua').
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment