-
Notifications
You must be signed in to change notification settings - Fork 824
Extend lammpsdump to accept arbitrary columns #3608
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
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
89c7363
Extended mdanalysis to accept other attributes as well.
99b7875
Able to parse arbitrary columns now.
36e9bb6
Tried to fix most of the pep8 problems.
3406e5b
First try at testing the additional column part.
87ed9ce
Testing multi read columns as well.
efca264
Fix the no additional columns case.
2f02395
Implemented requested changes to docs.
c8f61db
Implemented the requested changes to the tests.
140b062
Incorporated the PEP8 comments.
0365404
Third round of PEP...
138d569
PEP8 ...
5ab661a
Authors and changelog.
a785cec
Variable renaming issue.
ade5647
Hopefully fixed documentation.
603116a
Sphinx
bc9296c
Hopefully fixed the tests
d6d5426
Implement input from UGM23
hejamu 27cb7be
refine tests
hejamu 1e8557b
Small typo
pstaerk 07d0c18
Removed comment
pstaerk 5f36ff4
Addressed hmacdope's comments regarding issue link
e45e764
Addressed hmacdope's comments regarding file paths.
546dd43
Added warning if keys are not in lammpsdump file.
adec794
Tested the formatting error of additional_columns.
57b895d
Make changed lines comply with pep8
hejamu d054946
80 is indeed longer than 79...
hejamu bb568b3
Merge remote-tracking branch 'origin/develop' into extend_lammpsdump
hejamu 9f14a8a
Fix test
hejamu bcb044f
Fix test
hejamu 8ef649c
Don't format `datafiles.py`
hejamu bac1f4c
Added test of warning.
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
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
29 changes: 29 additions & 0 deletions
29
testsuite/MDAnalysisTests/data/lammps/additional_columns.data
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,29 @@ | ||
| LAMMPS data file via write_data, version 24 Mar 2022, timestep = 500 | ||
|
|
||
| 10 atoms | ||
| 1 atom types | ||
|
|
||
| 0 42.6 xlo xhi | ||
| 0 44.2712 ylo yhi | ||
| -25.1 25.1 zlo zhi | ||
|
|
||
| Masses | ||
|
|
||
| 1 12.011 | ||
|
|
||
| Pair Coeffs # lj/cut/coul/long/omp | ||
|
|
||
| 1 0.0663 3.5812 | ||
|
|
||
| Atoms # full | ||
|
|
||
| 1 2 1 -0.00706800004577013 2.84 8.17 -25 0 0 0 | ||
| 2 2 1 0.004078816788554217 7.1 8.17 -25 0 0 0 | ||
| 3 2 1 -0.005824512619752745 2.13 6.94 -25 0 0 0 | ||
| 4 2 1 0.002812345167059992 6.39 6.94 -25 0 0 0 | ||
| 5 2 1 -0.004070019151543417 2.84 5.71 -25 0 0 0 | ||
| 6 2 1 0.004796116641855679 7.1 5.71 -25 0 0 0 | ||
| 7 2 1 -0.003217742434809291 2.13 4.48 -25 0 0 0 | ||
| 8 2 1 0.0008273956785370801 6.39 4.48 -25 0 0 0 | ||
| 9 2 1 -0.0003942558636157474 2.84 3.25 -25 0 0 0 | ||
| 10 2 1 0.001288716009147968 7.1 3.25 -25 0 0 0 |
19 changes: 19 additions & 0 deletions
19
testsuite/MDAnalysisTests/data/lammps/additional_columns.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,19 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 10 | ||
| ITEM: BOX BOUNDS pp pp ff | ||
| 0.0000000000000000e+00 4.2600000000000001e+01 | ||
| 0.0000000000000000e+00 4.4271200000000000e+01 | ||
| -2.5100000000000001e+01 2.5100000000000001e+01 | ||
| ITEM: ATOMS id x y z q p | ||
| 1 2.84 8.17 -25 0.00258855 1.1 | ||
| 2 7.1 8.17 -25 6.91952e-05 1.2 | ||
| 3 2.13 6.94 -25 0.0105548 1.1 | ||
| 4 6.39 6.94 -25 0.00420319 1.2 | ||
| 5 2.84 5.71 -25 0.00919172 1.1 | ||
| 6 7.1 5.71 -25 0.00479777 1.2 | ||
| 7 2.13 4.48 -25 0.000636864 1.1 | ||
| 8 6.39 4.48 -25 0.00587125 1.2 | ||
| 9 2.84 3.25 -25 -0.00218125 1.1 | ||
| 10 7.1 3.25 -25 0.0068891 1.2 |
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
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.