We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I just fixed on occurence of the following:
assert abs(obasis.con_coeffs - np.array([0.15432897, 0.53532814, 0.44463454])).all()
It is missing a .max(). Such checks pass even if there is a mismatch. It is better to use numpy.testing instead. In this case:
.max()
numpy.testing
np.testing.assert_almost_equal(obasis.con_coeffs, [0.15432897, 0.53532814, 0.44463454])
We should at least fix all the cases where .max() was forgotten.
The text was updated successfully, but these errors were encountered:
Fix theochem#82: repair disfunctional asserts
32cf2ab
fa7b4a1
tovrstra
No branches or pull requests
I just fixed on occurence of the following:
It is missing a
.max()
. Such checks pass even if there is a mismatch. It is better to usenumpy.testing
instead. In this case:We should at least fix all the cases where
.max()
was forgotten.The text was updated successfully, but these errors were encountered: