Skip to content
New issue

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

Fix broken python tests and refactor assertions #3419

Merged
merged 4 commits into from
Jan 20, 2020

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Jan 18, 2020

No description provided.

The DPD stress tensor is zero when kT=0, and recalc_forces=True
doesn't recalculate velocities. Other tests were malformed.
@codecov
Copy link

codecov bot commented Jan 18, 2020

Codecov Report

Merging #3419 into python will decrease coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3419   +/-   ##
======================================
- Coverage      86%     86%   -1%     
======================================
  Files         538     538           
  Lines       25282   25282           
======================================
- Hits        21804   21797    -7     
- Misses       3478    3485    +7
Impacted Files Coverage Δ
src/core/electrostatics_magnetostatics/p3m.cpp 85% <0%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b16db68...bd8b8b2. Read the comment docs.

Use specialized assertions in place of `assertTrue` to pretty print
values with a meaningful error message. Use `assertAlmostEqual(obs,
ref, delta=tol)` in place of `self.assertLess(abs(obs - ref), tol)`
for the same reason. Use `numpy.testing` assertions for arrays.
Factor out duplicated code and simplify test logic. Remove debug
print statements and a few redundant custom messages in assertions.
@jngrad
Copy link
Member Author

jngrad commented Jan 18, 2020

We can't merge it yet, the modified dpd test is timing out on arm64. I'll have a look. Probably just a matter of removing one of the tested kT values.

@jngrad jngrad added the automerge Merge with kodiak label Jan 20, 2020
@kodiakhq kodiakhq bot merged commit 9715cef into espressomd:python Jan 20, 2020
@jngrad jngrad mentioned this pull request Feb 4, 2020
@jngrad jngrad deleted the fix-python-tests branch January 18, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants