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
a1b2641c
Commit
a1b2641c
authored
Jun 12, 2014
by
peastman
Browse files
Merge pull request #483 from swails/fix_charmm_psf
Fix residue assignment in PSF parser
parents
18564ab5
94398fe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
...ython/simtk/openmm/app/internal/charmm/topologyobjects.py
+4
-2
No files found.
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
View file @
a1b2641c
...
@@ -421,8 +421,10 @@ class ResidueList(list):
...
@@ -421,8 +421,10 @@ class ResidueList(list):
if
self
.
_last_residue
is
None
:
if
self
.
_last_residue
is
None
:
res
=
self
.
_last_residue
=
Residue
(
resname
,
resnum
)
res
=
self
.
_last_residue
=
Residue
(
resname
,
resnum
)
list
.
append
(
self
,
res
)
list
.
append
(
self
,
res
)
elif
self
.
_last_residue
!=
(
resname
,
resnum
):
elif
(
self
.
_last_residue
!=
(
resname
,
resnum
)
or
if
self
.
_last_residue
.
idx
==
resnum
:
system
!=
self
.
_last_residue
.
system
):
if
(
self
.
_last_residue
.
idx
==
resnum
and
system
==
self
.
_last_residue
.
system
):
lresname
=
self
.
_last_residue
.
resname
lresname
=
self
.
_last_residue
.
resname
warnings
.
warn
(
'Residue %d split into separate residues %s '
warnings
.
warn
(
'Residue %d split into separate residues %s '
'and %s'
%
(
resnum
,
lresname
,
resname
),
'and %s'
%
(
resnum
,
lresname
,
resname
),
...
...
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