Skip to content

Tiny error when parse psf files. #2815

Description

@RobinEllison

I found a tiny error when use app.CharmmPsfFile() to parse psf files
for example:

from simtk.openmm import app
psf = app.CharmmPsfFile('example.psf')
print(len(psf.residue_list))
print(len(psf.atom_list))

output the same number

elif (lr.resname != resname or lr.idx != resname or (line 535 in simtk/openmm/app/internal/charmm/topologyobjects.py)
replaced by
elif (lr.resname != resname or lr.idx != resnum or
May fix this problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions