-
Notifications
You must be signed in to change notification settings - Fork 825
Updated LAMMPS dump file topology parser #4995
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
Merged
+318
−48
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
99ff1b8
Updated LAMMPS dump topology parser to allow for mass, charge and ele…
jpkrowe 4cd3181
Update AUTHORS
jpkrowe 29de7ef
Merge branch 'develop' into gsoc-lammpsdump
orbeckst c128dd1
Added tests for improved lammps topology parsing
jpkrowe ace7542
Merge branch 'develop' into gsoc-lammpsdump
jpkrowe 0a64b73
Updated lammpsdump parser with suggested changes
jpkrowe 0305d25
Update docs and changelog
jpkrowe 73e9ff7
Fixed formatting issue
jpkrowe 263648a
Fixed docs and added descriptions for changes
jpkrowe 54d859b
Fixed formatting issue
jpkrowe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
39 changes: 39 additions & 0 deletions
39
testsuite/MDAnalysisTests/data/lammps/mass_q_elem.lammpstrj
This file contains hidden or 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,39 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 30 | ||
| ITEM: BOX BOUNDS pp pp pp | ||
| -1.6350000000000001e-01 3.8836500000000001e+01 | ||
| -1.7050000000000001e-01 3.8829500000000003e+01 | ||
| -1.1550000000000001e-01 9.4884500000000003e+01 | ||
| ITEM: ATOMS id mol type x y z element q proc mass | ||
| 1 1 9 6.10782 11.4384 0.798271 C -0.27 0 12.011 | ||
| 2 1 6 5.73938 10.7721 1.60738 H 0.09 0 1.008 | ||
| 3 1 6 5.36179 11.4598 -0.0247166 H 0.09 0 1.008 | ||
| 4 1 6 6.22277 12.4656 1.20551 H 0.09 0 1.008 | ||
| 5 1 7 7.41283 10.9555 0.293156 C 0.51 0 12.011 | ||
| 6 1 15 8.43683 11.6139 0.447366 O -0.51 0 15.9994 | ||
| 25 2 5 11.6777 7.51021 91.0484 H 0.09 0 1.008 | ||
| 7 1 14 7.41086 9.75757 94.689 N -0.47 0 14.007 | ||
| 8 1 1 6.55183 9.26307 94.5816 H 0.31 0 1.008 | ||
| 11 1 3 9.37844 9.17237 94.7817 H 0.09 0 1.008 | ||
| 16 2 5 10.6148 7.68449 93.1683 H 0.09 0 1.008 | ||
| 10 1 3 8.30811 8.18016 93.7248 H 0.09 0 1.008 | ||
| 9 1 8 8.58568 9.17251 94.0482 C -0.02 0 12.011 | ||
| 12 1 7 9.07397 9.91809 92.8201 C 0.51 0 12.011 | ||
| 13 1 15 8.35715 10.7673 92.2861 O -0.51 0 15.9994 | ||
| 14 2 13 10.274 9.63057 92.3198 N -0.29 0 14.007 | ||
| 15 2 12 11.1655 8.59754 92.8563 C 0 0 12.011 | ||
| 17 2 5 11.7158 9.02714 93.7206 H 0.09 0 1.008 | ||
| 18 2 10 10.7877 10.2091 91.0804 C 0.02 0 12.011 | ||
| 19 2 2 10.8053 11.2774 91.238 H 0.09 0 1.008 | ||
| 20 2 11 12.2025 9.60943 90.953 C -0.18 0 12.011 | ||
| 21 2 5 12.9179 10.2786 91.4772 H 0.09 0 1.008 | ||
| 22 2 5 12.5386 9.49027 89.9008 H 0.09 0 1.008 | ||
| 23 2 11 12.127 8.282 91.7093 C -0.18 0 12.011 | ||
| 24 2 5 13.1195 7.93535 92.0685 H 0.09 0 1.008 | ||
| 26 2 7 9.90917 9.92876 89.854 C 0.51 0 12.011 | ||
| 27 2 15 9.25139 8.88177 89.8474 O -0.51 0 15.9994 | ||
| 28 3 13 9.84845 10.7872 88.8235 N -0.29 0 14.007 | ||
| 29 3 12 10.561 12.0708 88.7803 C 0 0 12.011 | ||
| 30 3 5 10.318 12.7002 89.6629 H 0.09 0 1.008 |
14 changes: 14 additions & 0 deletions
14
testsuite/MDAnalysisTests/data/lammps/nomass_elemx.lammpstrj
This file contains hidden or 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,14 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 5 | ||
| ITEM: BOX BOUNDS pp pp pp | ||
| -1.6350000000000001e-01 3.8836500000000001e+01 | ||
| -1.7050000000000001e-01 3.8829500000000003e+01 | ||
| -1.1550000000000001e-01 9.4884500000000003e+01 | ||
| ITEM: ATOMS id mol type x y z q element | ||
| 1 1 9 6.10782 11.4384 0.798271 -0.27 C | ||
| 2 1 6 5.73938 10.7721 1.60738 0.09 X | ||
| 3 1 6 5.36179 11.4598 -0.0247166 0.09 H | ||
| 4 1 6 6.22277 12.4656 1.20551 0.09 H | ||
| 5 1 7 7.41283 10.9555 0.293156 0.51 C |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.