Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.voice
Commits
94a2d7da
Commit
94a2d7da
authored
Sep 24, 2016
by
Pavel KORSHUNOV
Browse files
fixing tests
parent
8e3977da
Pipeline
#3923
failed with stages
in 47 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/voice/test/test_spoofspeech.py
View file @
94a2d7da
...
...
@@ -68,7 +68,8 @@ def _spoof(parameters, cur_test_dir, sub_dir, score_types=('dev-real',), scores_
# assert that the data order is still correct
assert
(
data2check
[
0
][:,
0
:
3
]
==
data2check
[
1
][:,
0
:
3
]).
all
()
# assert that the values are OK
assert
numpy
.
allclose
(
data2check
[
0
][:,
3
].
astype
(
float
),
data2check
[
1
][:,
3
].
astype
(
float
),
1e-5
)
print
(
data2check
)
assert
numpy
.
allclose
(
data2check
[
0
][:,
3
].
astype
(
float
),
data2check
[
1
][:,
3
].
astype
(
float
),
1e-3
)
finally
:
shutil
.
rmtree
(
cur_test_dir
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment