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
521a44a7
There was a problem fetching the pipeline summary.
Commit
521a44a7
authored
8 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
Fix the dummy database
parent
a84d12d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/test/dummy/database.py
+9
-8
9 additions, 8 deletions
bob/bio/base/test/dummy/database.py
with
9 additions
and
8 deletions
bob/bio/base/test/dummy/database.py
+
9
−
8
View file @
521a44a7
from
bob.bio.db
import
ZTBioDatabase
,
AtntBioDatabase
from
bob.bio.db
import
ZTBioDatabase
from
bob.bio.base.test.utils
import
atnt_database_directory
from
bob.bio.base.test.utils
import
atnt_database_directory
...
@@ -14,13 +14,14 @@ class DummyDatabase(ZTBioDatabase):
...
@@ -14,13 +14,14 @@ class DummyDatabase(ZTBioDatabase):
training_depends_on_protocol
=
False
,
training_depends_on_protocol
=
False
,
models_depend_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
):
def
model_ids
_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
self
.
__db
.
model_ids
(
groups
,
protocol
,
gender
)
return
self
.
__db
.
model_ids
(
groups
,
protocol
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
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
):
def
tobjects
(
self
,
groups
=
None
,
protocol
=
None
,
model_ids
=
None
,
**
kwargs
):
return
[]
return
[]
...
@@ -28,13 +29,13 @@ class DummyDatabase(ZTBioDatabase):
...
@@ -28,13 +29,13 @@ class DummyDatabase(ZTBioDatabase):
def
zobjects
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
def
zobjects
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
[]
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
)
return
self
.
__db
.
model_ids
(
groups
)
def
t_enroll_files
(
self
,
t_model_id
,
group
=
'
dev
'
):
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
'
):
def
z_probe_files
(
self
,
group
=
'
dev
'
):
return
self
.
__db
.
probe_files
(
None
,
group
)
return
self
.
probe_files
(
None
,
group
)
database
=
DummyDatabase
()
database
=
DummyDatabase
()
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