-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add gather and integration test #46
base: main
Are you sure you want to change the base?
Conversation
Hello @hannahbaumann! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-09-26 12:32:01 UTC |
for more information, see https://pre-commit.ci
|
||
res = prot.gather([dagres]) | ||
|
||
assert isinstance(res, GromacsMDProtocolResult) |
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.
Maybe check the other attributes of the results object? I.e. what else do you expect to be getting out of it?
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.
Do you mean testing the get_x
functions here?
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.
Yeah, it's a bit tedious but you can probably program/template a lot of it using something like getattr and a loop.
scratch_basedir=scratch_temp, | ||
keep_shared=False, | ||
n_retries=3, | ||
) |
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.
For a full integration test, you really want to run "this thing under normal circumstances".
What you're testing is "is this thing yielding the results I would expect".
To do that you could test:
- Am I getting the right temperature?
- Am I getting the right pressure?
- Is my box volume equilibrating during the NPT phase?
- Is my ligand sticking around the binding site as I would expect it to?
- Is my energy reasonably well maintained?
Because you're marking it with the "this is really expensive" flag, it's perfectly ok to make this a much longer test (many more steps, etc...).
Description
This PR adds some tests.
It addresses following issues: