Add gather and integration test - #46
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.
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.
Do you mean testing the get_x functions here?
There was a problem hiding this comment.
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.
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: