-
Notifications
You must be signed in to change notification settings - Fork 189
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
Improve LB interface testing #4049
Conversation
Accessing nodes out of bounds causes ESPResSo to freeze.
Backport testcase from the 4.3 branch.
Also thermalize the fluid and document the non-VTK write functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for those tests! just minor improvements should be done before merging
This change better reflects what is actually carried out by these functions. Affects LB and EK modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please clarify the private id function which must have been introduced elsewhere
testsuite/python/h5md.py
Outdated
@@ -30,7 +30,7 @@ | |||
import espressomd.io.writer | |||
try: | |||
import h5py # h5py has to be imported *after* espressomd (MPI) | |||
skipIfMissingPythonPackage = ut.case._id | |||
skipIfMissingPythonPackage = utx._id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, i still don't get why this should be a private function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've renamed it to no_skip
in 08a674f
testsuite/python/mdanalysis.py
Outdated
try: | ||
import MDAnalysis as mda | ||
from espressomd import MDA_ESP | ||
skipIfMissingPythonPackage = ut.case._id | ||
skipIfMissingPythonPackage = utx._id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skipIfMissingPythonPackage = utx._id | |
skipIfMissingPythonPackage = lambda x: x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be even more readable, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want to hide implementation details of python decorators (that's why unittest
created _id()
in the first place)
also, that lambda expression would be transformed into a regular function by autopep8
7db0322
to
89586a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes after Kai's review look good to me
requested changes have been addressed
Description of changes:
print_vtk_*
functions towrite_vtk_*
functions in LB and EK to better reflect what they actually dobb2
now needs zero-based indices)