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
Commits
7c3e4856
There was an error fetching the commit references. Please try again later.
Commit
7c3e4856
authored
8 years ago
by
André Anjos
💬
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into config_file
parents
098de3fe
24bda38f
No related branches found
No related tags found
1 merge request
!35
Config file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/base/test/dummy/database.py
+9
-8
9 additions, 8 deletions
bob/bio/base/test/dummy/database.py
bob/bio/base/test/dummy/fileset.py
+9
-8
9 additions, 8 deletions
bob/bio/base/test/dummy/fileset.py
with
18 additions
and
16 deletions
bob/bio/base/test/dummy/database.py
+
9
−
8
View file @
7c3e4856
from
bob.bio.db
import
ZTBioDatabase
,
AtntBioDatabase
from
bob.bio.db
import
ZTBioDatabase
from
bob.bio.base.test.utils
import
atnt_database_directory
...
...
@@ -14,13 +14,14 @@ class DummyDatabase(ZTBioDatabase):
training_depends_on_protocol
=
False
,
models_depend_on_protocol
=
False
)
self
.
__db
=
AtntBioDatabase
()
import
bob.db.atnt
self
.
__db
=
bob
.
db
.
atnt
.
Database
()
def
model_ids
(
self
,
groups
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
groups
,
protocol
,
gender
)
def
model_ids
_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
self
.
__db
.
model_ids
(
groups
,
protocol
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
return
self
.
__db
.
objects
(
group
s
,
p
ro
tocol
,
purposes
,
model_ids
,
**
kwargs
)
return
self
.
__db
.
objects
(
model_id
s
,
g
ro
ups
,
purposes
,
protocol
,
**
kwargs
)
def
tobjects
(
self
,
groups
=
None
,
protocol
=
None
,
model_ids
=
None
,
**
kwargs
):
return
[]
...
...
@@ -28,13 +29,13 @@ class DummyDatabase(ZTBioDatabase):
def
zobjects
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
[]
def
tmodel_ids
(
self
,
protocol
=
None
,
groups
=
None
,
**
kwargs
):
def
tmodel_ids
_with_protocol
(
self
,
protocol
=
None
,
groups
=
None
,
**
kwargs
):
return
self
.
__db
.
model_ids
(
groups
)
def
t_enroll_files
(
self
,
t_model_id
,
group
=
'
dev
'
):
return
self
.
__db
.
enroll_files
(
t_model_id
,
group
)
return
self
.
enroll_files
(
t_model_id
,
group
)
def
z_probe_files
(
self
,
group
=
'
dev
'
):
return
self
.
__db
.
probe_files
(
None
,
group
)
return
self
.
probe_files
(
None
,
group
)
database
=
DummyDatabase
()
This diff is collapsed.
Click to expand it.
bob/bio/base/test/dummy/fileset.py
+
9
−
8
View file @
7c3e4856
from
bob.bio.db
import
ZTBioDatabase
,
BioFileSet
,
BioFile
,
AtntBioDatabase
from
bob.bio.db
import
ZTBioDatabase
,
BioFileSet
,
BioFile
from
bob.bio.base.test.utils
import
atnt_database_directory
...
...
@@ -14,7 +14,8 @@ class DummyDatabase(ZTBioDatabase):
training_depends_on_protocol
=
False
,
models_depend_on_protocol
=
False
)
self
.
__db
=
AtntBioDatabase
()
import
bob.db.atnt
self
.
__db
=
bob
.
db
.
atnt
.
Database
()
def
uses_probe_file_sets
(
self
):
return
True
...
...
@@ -33,11 +34,11 @@ class DummyDatabase(ZTBioDatabase):
file_sets
.
append
(
file_set
)
return
file_sets
def
model_ids
(
self
,
groups
=
None
,
protocol
=
None
,
gender
=
None
):
return
self
.
__db
.
model_ids
(
groups
,
protocol
,
gender
)
def
model_ids
_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
self
.
__db
.
model_ids
(
groups
,
protocol
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
return
self
.
__db
.
objects
(
group
s
,
p
ro
tocol
,
purposes
,
model_ids
,
**
kwargs
)
return
self
.
__db
.
objects
(
model_id
s
,
g
ro
ups
,
purposes
,
protocol
,
**
kwargs
)
def
tobjects
(
self
,
groups
=
None
,
protocol
=
None
,
model_ids
=
None
,
**
kwargs
):
return
[]
...
...
@@ -45,14 +46,14 @@ class DummyDatabase(ZTBioDatabase):
def
zobjects
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
[]
def
tmodel_ids
(
self
,
protocol
=
None
,
groups
=
None
,
**
kwargs
):
def
tmodel_ids
_with_protocol
(
self
,
protocol
=
None
,
groups
=
None
,
**
kwargs
):
return
self
.
__db
.
model_ids
(
groups
)
def
t_enroll_files
(
self
,
t_model_id
,
group
=
'
dev
'
):
return
self
.
__db
.
enroll_files
(
t_model_id
,
group
)
return
self
.
enroll_files
(
t_model_id
,
group
)
def
z_probe_files
(
self
,
group
=
'
dev
'
):
return
self
.
__db
.
probe_files
(
None
,
group
)
return
self
.
probe_files
(
None
,
group
)
def
z_probe_file_sets
(
self
,
group
=
'
dev
'
):
return
self
.
probe_file_sets
(
None
,
group
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment