diff fingerprint#200
Conversation
riya-singh28
left a comment
There was a problem hiding this comment.
This PR needs minor changes. @ARY2260 Please do a final pass after the changes.
| prod = result[block : 2 * block] | ||
| diff = result[2 * block : 3 * block] | ||
|
|
||
| np.testing.assert_array_equal(diff, prod - reac) |
There was a problem hiding this comment.
If prod and reac are floating-point arrays, tiny numerical differences can break this. Please consider using np.testing.assert_allclose(diff, prod - reac, rtol=1e-6)
| np.testing.assert_array_equal(diff, np.zeros(block)) | ||
|
|
||
|
|
||
| def test_diff_values_are_minus1_zero_or_plus1(): |
There was a problem hiding this comment.
@redrodeo03 Please add a docstring explaining this test.
There was a problem hiding this comment.
@redrodeo03 You can consider renaming this file to test_feat.py since it contains tests related to both diff_fingerprint.py and rdkit_fingerprint.py files.
There was a problem hiding this comment.
diff_fingerprint actually used rdkit_fingerprint too, I thought it would avoid confusion, i'll make the change if you still think its necessary!
Description
Fix #(issue)
Type of change
Please check the option that is related to your PR.
Checklist