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
6f44f338
Commit
6f44f338
authored
Dec 20, 2018
by
peastman
Browse files
Fixed an error in parsing PSF files with multiple segments
parent
813772e8
Changes
1
Show 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 @
6f44f338
...
@@ -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