Skip to content

Commit

Permalink
Merge pull request #15 from skelm/patch-1
Browse files Browse the repository at this point in the history
restrain_ligand.py handling 2-letter residue names
  • Loading branch information
amjjbonvin committed Jul 11, 2018
2 parents 3b3c22d + 44f534d commit 89cdab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restrain_ligand.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

ligand = None
for residue in structure.get_residues():
if residue.resname == args.ligand:
if residue.resname.strip() == args.ligand.strip():
ligand = residue
break

Expand Down

0 comments on commit 89cdab7

Please sign in to comment.