Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
4d7ab095
Unverified
Commit
4d7ab095
authored
Jan 08, 2019
by
peastman
Committed by
GitHub
Jan 08, 2019
Browse files
Merge pull request #2231 from peastman/psf
Fixed an error in parsing PSF files with multiple segments
parents
bd66a7b9
6f44f338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
wrappers/python/simtk/openmm/app/charmmpsffile.py
wrappers/python/simtk/openmm/app/charmmpsffile.py
+1
-0
No files found.
wrappers/python/simtk/openmm/app/charmmpsffile.py
View file @
4d7ab095
...
@@ -702,6 +702,7 @@ class CharmmPsfFile(object):
...
@@ -702,6 +702,7 @@ class CharmmPsfFile(object):
if
atom
.
system
!=
last_chain
:
if
atom
.
system
!=
last_chain
:
chain
=
topology
.
addChain
(
atom
.
system
)
chain
=
topology
.
addChain
(
atom
.
system
)
last_chain
=
atom
.
system
last_chain
=
atom
.
system
last_residue
=
None
if
resid
!=
last_residue
:
if
resid
!=
last_residue
:
last_residue
=
resid
last_residue
=
resid
residue
=
topology
.
addResidue
(
atom
.
residue
.
resname
,
chain
,
resid
)
residue
=
topology
.
addResidue
(
atom
.
residue
.
resname
,
chain
,
resid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment