"platforms/hip/include/HipQueue.h" did not exist on "10379a9a4405bc4efa5f1ba0ab93b85b21404e44"
Commit a1b2641c authored by peastman's avatar peastman
Browse files

Merge pull request #483 from swails/fix_charmm_psf

Fix residue assignment in PSF parser
parents 18564ab5 94398fe7
......@@ -421,8 +421,10 @@ class ResidueList(list):
if self._last_residue is None:
res = self._last_residue = Residue(resname, resnum)
list.append(self, res)
elif self._last_residue != (resname, resnum):
if self._last_residue.idx == resnum:
elif (self._last_residue != (resname, resnum) or
system != self._last_residue.system):
if (self._last_residue.idx == resnum and
system == self._last_residue.system):
lresname = self._last_residue.resname
warnings.warn('Residue %d split into separate residues %s '
'and %s' % (resnum, lresname, resname),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment