Describe the bug
While I was fixing up the linter complaints. It mentioned that two tests didn't have assertion statements in them. If I did add them I get an error where the two arrays are not close at all. I haven't looked into but thought I put an issue for it.
As you can see below, the two tests don't have the obvious assert np.allclose(a, b) statement to them. If I add this fix, the shape is correct but the error is very large.
The first failed test is test_compute_differential_operator_integrals_multiarray in test_diff_operator_int.py
|
for k, angmom_b in enumerate(angmoms_b): |
|
_compute_differential_operator_integrals( |
|
np.array([order_diff]), |
|
coord_a, |
|
np.array([angmom_a]), |
|
exps_a, |
|
coeffs_a, |
|
norm_a, |
|
coord_b, |
|
np.array([angmom_b]), |
|
exps_b, |
|
coeffs_b, |
|
norm_b, |
|
) == test[i, 0, j, 0, k] |
The second test is test_compute_multipole_moment_integrals_multiarray in test_moment_int.py:
|
for k, angmom_b in enumerate(angmoms_b): |
|
_compute_multipole_moment_integrals( |
|
coord_moment, |
|
np.array([order_moment]), |
|
coord_a, |
|
np.array([angmom_a]), |
|
exps_a, |
|
coeffs_a, |
|
norm_a, |
|
coord_b, |
|
np.array([angmom_b]), |
|
exps_b, |
|
coeffs_b, |
|
norm_b, |
|
) == test[i, 0, j, 0, k] |
To Reproduce
pytest -v .
Additional context
Describe the bug
While I was fixing up the linter complaints. It mentioned that two tests didn't have assertion statements in them. If I did add them I get an error where the two arrays are not close at all. I haven't looked into but thought I put an issue for it.
As you can see below, the two tests don't have the obvious
assert np.allclose(a, b)statement to them. If I add this fix, the shape is correct but the error is very large.The first failed test is
test_compute_differential_operator_integrals_multiarrayintest_diff_operator_int.pygbasis/tests/test_diff_operator_int.py
Lines 315 to 328 in c826871
The second test is
test_compute_multipole_moment_integrals_multiarrayintest_moment_int.py:gbasis/tests/test_moment_int.py
Lines 800 to 814 in c826871
To Reproduce
pytest -v .Additional context