Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
cf12e92a
Commit
cf12e92a
authored
Aug 27, 2016
by
Pavel KORSHUNOV
Browse files
fix failing tests
parent
b55ecdb9
Pipeline
#3396
passed with stages
in 28 minutes and 26 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
bob/bio/base/test/dummy/database.py
View file @
cf12e92a
...
...
@@ -16,8 +16,8 @@ class DummyDatabase(ZTBioDatabase):
)
self
.
__db
=
AtntBioDatabase
()
def
model_ids
(
self
,
group
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
group
,
protocol
,
gender
)
def
model_ids
(
self
,
group
s
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
group
s
,
protocol
,
gender
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
return
self
.
__db
.
objects
(
groups
,
protocol
,
purposes
,
model_ids
,
**
kwargs
)
...
...
bob/bio/base/test/dummy/fileset.py
View file @
cf12e92a
...
...
@@ -33,8 +33,8 @@ class DummyDatabase(ZTBioDatabase):
file_sets
.
append
(
file_set
)
return
file_sets
def
model_ids
(
self
,
group
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
group
,
protocol
,
gender
)
def
model_ids
(
self
,
group
s
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
group
s
,
protocol
,
gender
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
return
self
.
__db
.
objects
(
groups
,
protocol
,
purposes
,
model_ids
,
**
kwargs
)
...
...
bob/bio/base/tools/FileSelector.py
View file @
cf12e92a
...
...
@@ -158,7 +158,7 @@ class FileSelector:
def
model_ids
(
self
,
group
):
"""Returns the sorted list of model ids from the given group."""
return
sorted
(
self
.
database
.
model_ids
(
group
=
group
))
return
sorted
(
self
.
database
.
model_ids
(
group
s
=
group
))
def
enroll_files
(
self
,
model_id
,
group
,
directory_type
):
"""Returns the list of model feature files used for enrollment of the model with the given model_id from the given group.
...
...
@@ -190,7 +190,7 @@ class FileSelector:
def
t_model_ids
(
self
,
group
):
"""Returns the sorted list of T-Norm-model ids from the given group."""
return
sorted
(
self
.
database
.
t_model_ids
(
group
=
group
))
return
sorted
(
self
.
database
.
t_model_ids
(
group
s
=
group
))
def
t_enroll_files
(
self
,
t_model_id
,
group
,
directory_type
):
"""Returns the list of T-norm model files used for enrollment of the given model_id from the given group."""
...
...
Write
Preview
Supports
Markdown
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