Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
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.face
Commits
dd636293
Commit
dd636293
authored
9 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Included tolerances into tests
parent
23cd2627
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/test/test_extractors.py
+2
-2
2 additions, 2 deletions
bob/bio/face/test/test_extractors.py
bob/bio/face/test/test_preprocessors.py
+2
-2
2 additions, 2 deletions
bob/bio/face/test/test_preprocessors.py
with
4 additions
and
4 deletions
bob/bio/face/test/test_extractors.py
+
2
−
2
View file @
dd636293
...
...
@@ -33,14 +33,14 @@ import pkg_resources
regenerate_refs
=
False
def
_compare
(
data
,
reference
,
write_function
=
bob
.
bio
.
base
.
save
,
read_function
=
bob
.
bio
.
base
.
load
):
def
_compare
(
data
,
reference
,
write_function
=
bob
.
bio
.
base
.
save
,
read_function
=
bob
.
bio
.
base
.
load
,
atol
=
1e-5
,
rtol
=
1e-8
):
# write reference?
if
regenerate_refs
:
write_function
(
data
,
reference
)
# compare reference
reference
=
read_function
(
reference
)
assert
numpy
.
allclose
(
data
,
reference
,
atol
=
1e-5
)
assert
numpy
.
allclose
(
data
,
reference
,
atol
=
atol
,
rtol
=
rtol
)
def
_data
():
return
bob
.
bio
.
base
.
load
(
pkg_resources
.
resource_filename
(
'
bob.bio.face.test
'
,
'
data/cropped.hdf5
'
))
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/test/test_preprocessors.py
+
2
−
2
View file @
dd636293
...
...
@@ -33,14 +33,14 @@ import bob.bio.face
import
bob.db.verification.utils
def
_compare
(
data
,
reference
,
write_function
=
bob
.
bio
.
base
.
save
,
read_function
=
bob
.
bio
.
base
.
load
):
def
_compare
(
data
,
reference
,
write_function
=
bob
.
bio
.
base
.
save
,
read_function
=
bob
.
bio
.
base
.
load
,
atol
=
1e-5
,
rtol
=
1e-8
):
# write reference?
if
regenerate_refs
:
write_function
(
data
,
reference
)
# compare reference
reference
=
read_function
(
reference
)
assert
numpy
.
allclose
(
data
,
reference
,
atol
=
1e-5
)
assert
numpy
.
allclose
(
data
,
reference
,
atol
=
atol
,
rtol
=
rtol
)
def
_image
():
...
...
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