Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
signaturizer
Commits
44f7d1d2
Commit
44f7d1d2
authored
Nov 09, 2020
by
Martino Bertoni
🌋
Browse files
using almost equal in all unittests
parent
f10ddc71
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_signaturizer.py
View file @
44f7d1d2
...
...
@@ -120,5 +120,5 @@ class TestSignaturizer(unittest.TestCase):
res_all
=
module
.
predict
(
self
.
test_smiles
)
for
idx
,
smile
in
enumerate
(
self
.
test_smiles
):
res_single
=
module
.
predict
([
smile
])
self
.
assertTrue
(
all
(
res_all
.
signature
[
idx
]
==
res_single
.
signature
[
0
])
)
np
.
testing
.
assert_almost_equal
(
res_all
.
signature
[
idx
],
res_single
.
signature
[
0
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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