Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Merge requests
!39
Solving Issue
#38
- BioDatabase method training_files causes tests to fail
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Solving Issue
#38
- BioDatabase method training_files causes tests to fail
issue-8-remove-database-configuration
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Tiago de Freitas Pereira
requested to merge
issue-8-remove-database-configuration
into
master
8 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
fccd28b1
1 commit,
8 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bob/bio/base/test/test_database_implementations.py
+
4
−
3
Options
@@ -12,7 +12,7 @@ import os
from
bob.bio.base.database
import
BioDatabase
,
ZTBioDatabase
def
check_database
(
database
,
groups
=
(
'
dev
'
,),
protocol
=
None
,
training_depends
=
False
,
models_depend
=
False
):
def
check_database
(
database
,
groups
=
(
'
dev
'
,),
protocol
=
None
,
training_depends
=
False
,
models_depend
=
False
,
skip_train
=
False
):
assert
isinstance
(
database
,
BioDatabase
)
# load the directories
@@ -23,8 +23,9 @@ def check_database(database, groups=('dev',), protocol=None, training_depends=Fa
if
protocol
is
None
:
protocol
=
database
.
protocol
assert
len
(
database
.
all_files
())
>
0
assert
len
(
database
.
training_files
(
'
train_extractor
'
))
>
0
assert
len
(
database
.
arrange_by_client
(
database
.
training_files
(
'
train_enroller
'
)))
>
0
if
not
skip_train
:
assert
len
(
database
.
training_files
(
'
train_extractor
'
))
>
0
assert
len
(
database
.
arrange_by_client
(
database
.
training_files
(
'
train_enroller
'
)))
>
0
for
group
in
groups
:
model_ids
=
database
.
model_ids_with_protocol
(
group
,
protocol
=
protocol
)
Loading