-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix endstate validation handling in PointMutationExecutor (#866)
* fix endstate validation handling * added a test to catch regressions like this Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
- Loading branch information
1 parent
410ca4f
commit c1f5769
Showing
2 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
def test_PointMutationExecutor(): | ||
from pkg_resources import resource_filename | ||
from simtk import unit | ||
|
||
from perses.app.relative_point_mutation_setup import PointMutationExecutor | ||
|
||
pdb_filename = resource_filename("perses", "data/ala_vacuum.pdb") | ||
PointMutationExecutor( | ||
pdb_filename, | ||
"1", | ||
"2", | ||
"ASP", | ||
ionic_strength=0.15 * unit.molar, | ||
flatten_torsions=True, | ||
flatten_exceptions=True, | ||
conduct_endstate_validation=False, | ||
) | ||
|
||
|
||
def test_PointMutationExecutor_endstate_validation(): | ||
from pkg_resources import resource_filename | ||
from simtk import unit | ||
pdb_filename = resource_filename('perses', 'data/ala_vacuum.pdb') | ||
solvent_delivery = PointMutationExecutor(pdb_filename, | ||
'1', | ||
'2', | ||
'ASP', | ||
ionic_strength=0.15*unit.molar, | ||
flatten_torsions=True, | ||
flatten_exceptions=True, | ||
conduct_endstate_validation=False | ||
) | ||
|
||
from perses.app.relative_point_mutation_setup import PointMutationExecutor | ||
|
||
pdb_filename = resource_filename("perses", "data/ala_vacuum.pdb") | ||
PointMutationExecutor( | ||
pdb_filename, | ||
"1", | ||
"2", | ||
"ASP", | ||
ionic_strength=0.15 * unit.molar, | ||
flatten_torsions=False, | ||
flatten_exceptions=False, | ||
conduct_endstate_validation=True, | ||
) |