-
Notifications
You must be signed in to change notification settings - Fork 667
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
Add 'PairIJ Coeffs' section to the list of sections in LAMMPS parser #3959
Changes from 15 commits
ee10b65
9277e7a
383423f
2299045
8269b20
4edbdca
48b771e
357dc9c
9130850
8d8786c
4b5885e
49421fe
b0beae3
6624fda
4330ed4
4e134a6
d8fc45a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -36,6 +36,7 @@ | |||
LAMMPSdata_deletedatoms, | ||||
LAMMPSDUMP, | ||||
LAMMPSDUMP_long, | ||||
LAMMPSdata_PairIJ, | ||||
) | ||||
|
||||
|
||||
|
@@ -179,6 +180,26 @@ def test_traj(self, filename): | |||
dtype=np.float32)) | ||||
|
||||
IAlibay marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
|
||||
class TestLammpsDataPairIJ(LammpsBase): | ||||
IAlibay marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
"""Tests the reading of lammps .data topology file with a | ||||
PairIJ Coeffs section | ||||
""" | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
No worries about the darker linting, as long as it's not breaching PEP8 it ends up just That being said the above "whitespace on an empty line" is a PEP8 violation (I suspect the suggested edit here won't work well, essentially the empty line is fine, but it can't have any whitespaces on it) Sorry about this, as @orbeckst explains re: keeping maintenance costs down, we end up requiring a lot of weird formatting rules that do tend to be rather unfriendly to new contributors :( |
||||
expected_attrs = ['types', 'resids', 'masses', | ||||
'bonds', 'angles', 'dihedrals', 'impropers'] | ||||
ref_filename = LAMMPSdata_PairIJ | ||||
expected_n_atoms = 800 | ||||
expected_n_atom_types = 2 | ||||
expected_n_residues = 1 | ||||
ref_n_bonds = 799 | ||||
ref_bond = (397, 398) | ||||
ref_n_angles = 390 | ||||
ref_angle = (722, 723, 724) | ||||
ref_n_dihedrals = 385 | ||||
ref_dihedral = (722, 723, 724, 725) | ||||
ref_n_impropers = 0 | ||||
|
||||
IAlibay marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
|
||||
LAMMPS_NORESID = """\ | ||||
LAMMPS data file via write_data, version 11 Aug 2017, timestep = 0 | ||||
|
||||
|
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.
Please don't add the extra line here (we try to keep the format of this file reasonably strict to make life easier on releases).