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
Parsing negative values in ATOMIC_NUMBER records of AMBER topologies #2307
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
141 changes: 141 additions & 0 deletions
141
testsuite/MDAnalysisTests/data/Amber/ace_mbondi3.negative.parm7
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 |
---|---|---|
@@ -0,0 +1,141 @@ | ||
%VERSION VERSION_STAMP = V0001.000 DATE = 09/08/18 15:36:17 | ||
%FLAG TITLE | ||
%FORMAT(20a4) | ||
ACE | ||
%FLAG POINTERS | ||
%FORMAT(10I8) | ||
6 4 3 2 6 1 9 0 0 0 | ||
16 1 2 1 0 3 3 3 4 0 | ||
0 0 0 0 0 0 0 0 6 0 | ||
0 | ||
%FLAG ATOM_NAME | ||
%FORMAT(20a4) | ||
HH31CH3 HH32HH33C O | ||
%FLAG CHARGE | ||
%FORMAT(5E16.8) | ||
2.04636429E+00 -6.67300626E+00 2.04636429E+00 2.04636429E+00 1.08823576E+01 | ||
-1.03484442E+01 | ||
%FLAG ATOMIC_NUMBER | ||
%FORMAT(10I8) | ||
1 -1 1 1 6 -1 | ||
%FLAG MASS | ||
%FORMAT(5E16.8) | ||
1.00800000E+00 1.20100000E+01 1.00800000E+00 1.00800000E+00 1.20100000E+01 | ||
1.60000000E+01 | ||
%FLAG ATOM_TYPE_INDEX | ||
%FORMAT(10I8) | ||
1 2 1 1 3 4 | ||
%FLAG NUMBER_EXCLUDED_ATOMS | ||
%FORMAT(10I8) | ||
5 4 3 2 1 1 | ||
%FLAG NONBONDED_PARM_INDEX | ||
%FORMAT(10I8) | ||
1 2 4 7 2 3 5 8 4 5 | ||
6 9 7 8 9 10 | ||
%FLAG RESIDUE_LABEL | ||
%FORMAT(20a4) | ||
ACE | ||
%FLAG RESIDUE_POINTER | ||
%FORMAT(10I8) | ||
1 | ||
%FLAG BOND_FORCE_CONSTANT | ||
%FORMAT(5E16.8) | ||
5.70000000E+02 3.40000000E+02 3.17000000E+02 | ||
%FLAG BOND_EQUIL_VALUE | ||
%FORMAT(5E16.8) | ||
1.22900000E+00 1.09000000E+00 1.52200000E+00 | ||
%FLAG ANGLE_FORCE_CONSTANT | ||
%FORMAT(5E16.8) | ||
5.00000000E+01 3.50000000E+01 8.00000000E+01 | ||
%FLAG ANGLE_EQUIL_VALUE | ||
%FORMAT(5E16.8) | ||
1.91113635E+00 1.91113635E+00 2.10137732E+00 | ||
%FLAG DIHEDRAL_FORCE_CONSTANT | ||
%FORMAT(5E16.8) | ||
8.00000000E-01 0.00000000E+00 8.00000000E-02 | ||
%FLAG DIHEDRAL_PERIODICITY | ||
%FORMAT(5E16.8) | ||
1.00000000E+00 2.00000000E+00 3.00000000E+00 | ||
%FLAG DIHEDRAL_PHASE | ||
%FORMAT(5E16.8) | ||
0.00000000E+00 0.00000000E+00 3.14159400E+00 | ||
%FLAG SCEE_SCALE_FACTOR | ||
%FORMAT(5E16.8) | ||
1.20000000E+00 1.20000000E+00 1.20000000E+00 | ||
%FLAG SCNB_SCALE_FACTOR | ||
%FORMAT(5E16.8) | ||
2.00000000E+00 2.00000000E+00 2.00000000E+00 | ||
%FLAG SOLTY | ||
%FORMAT(5E16.8) | ||
0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 | ||
%FLAG LENNARD_JONES_ACOEF | ||
%FORMAT(5E16.8) | ||
7.51607703E+03 9.71708117E+04 1.04308023E+06 8.61541883E+04 9.24822270E+05 | ||
8.19971662E+05 5.44261042E+04 6.47841731E+05 5.74393458E+05 3.79876399E+05 | ||
%FLAG LENNARD_JONES_BCOEF | ||
%FORMAT(5E16.8) | ||
2.17257828E+01 1.26919150E+02 6.75612247E+02 1.12529845E+02 5.99015525E+02 | ||
5.31102864E+02 1.11805549E+02 6.26720080E+02 5.55666448E+02 5.64885984E+02 | ||
%FLAG BONDS_INC_HYDROGEN | ||
%FORMAT(10I8) | ||
3 6 2 3 9 2 0 3 2 | ||
%FLAG BONDS_WITHOUT_HYDROGEN | ||
%FORMAT(10I8) | ||
12 15 1 3 12 3 | ||
%FLAG ANGLES_INC_HYDROGEN | ||
%FORMAT(10I8) | ||
9 3 12 1 6 3 9 2 6 3 | ||
12 1 0 3 6 2 0 3 9 2 | ||
0 3 12 1 | ||
%FLAG ANGLES_WITHOUT_HYDROGEN | ||
%FORMAT(10I8) | ||
3 12 15 3 | ||
%FLAG DIHEDRALS_INC_HYDROGEN | ||
%FORMAT(10I8) | ||
9 3 12 15 1 9 3 -12 15 2 | ||
9 3 -12 15 3 6 3 12 15 1 | ||
6 3 -12 15 2 6 3 -12 15 3 | ||
0 3 12 15 1 0 3 -12 15 2 | ||
0 3 -12 15 3 | ||
%FLAG DIHEDRALS_WITHOUT_HYDROGEN | ||
%FORMAT(10I8) | ||
|
||
%FLAG EXCLUDED_ATOMS_LIST | ||
%FORMAT(10I8) | ||
2 3 4 5 6 3 4 5 6 4 | ||
5 6 5 6 6 0 | ||
%FLAG HBOND_ACOEF | ||
%FORMAT(5E16.8) | ||
|
||
%FLAG HBOND_BCOEF | ||
%FORMAT(5E16.8) | ||
|
||
%FLAG HBCUT | ||
%FORMAT(5E16.8) | ||
|
||
%FLAG AMBER_ATOM_TYPE | ||
%FORMAT(20a4) | ||
HC CT HC HC C O | ||
%FLAG TREE_CHAIN_CLASSIFICATION | ||
%FORMAT(20a4) | ||
M M E E M E | ||
%FLAG JOIN_ARRAY | ||
%FORMAT(10I8) | ||
0 0 0 0 0 0 | ||
%FLAG IROTAT | ||
%FORMAT(10I8) | ||
0 0 0 0 0 0 | ||
%FLAG RADIUS_SET | ||
%FORMAT(1a80) | ||
ArgH and AspGluO modified Bondi2 radii (mbondi3) | ||
%FLAG RADII | ||
%FORMAT(5E16.8) | ||
1.20000000E+00 1.70000000E+00 1.20000000E+00 1.20000000E+00 1.70000000E+00 | ||
1.50000000E+00 | ||
%FLAG SCREEN | ||
%FORMAT(5E16.8) | ||
8.50000000E-01 7.20000000E-01 8.50000000E-01 8.50000000E-01 7.20000000E-01 | ||
8.50000000E-01 | ||
%FLAG IPOL | ||
%FORMAT(1I8) | ||
0 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
you should be able to write some sort of test that uses
assert_warns
(or is itwith pytest.warns:
?)