Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.db.banca
Commits
e74a7392
Commit
e74a7392
authored
Sep 24, 2012
by
Laurent EL SHAFEY
Browse files
Cleanup scripts
parent
0d5ff04c
Changes
3
Hide whitespace changes
Inline
Side-by-side
xbob/db/banca/checkfiles.py
View file @
e74a7392
...
...
@@ -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,
...
...
xbob/db/banca/dumplist.py
View file @
e74a7392
...
...
@@ -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,
...
...
xbob/db/banca/query.py
View file @
e74a7392
...
...
@@ -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').
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment