Skip to content
Snippets Groups Projects
Commit 8777e4e7 authored by Niklaus Johner's avatar Niklaus Johner
Browse files

Fixed bug in the msms binding.

If selection, no_hydrogens, no_hetatoms or no_waters was used,
the surfaces would get attached to wrong atoms.
parent 25706486
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ def _ParseAreaFile(entity, selection, file, asa_prop, esa_prop): ...@@ -121,7 +121,7 @@ def _ParseAreaFile(entity, selection, file, asa_prop, esa_prop):
raise RuntimeError, "Atom count (%d) unequeal to number of atoms in area file (%d)" % (view.GetAtomCount(), len(area_lines)) raise RuntimeError, "Atom count (%d) unequeal to number of atoms in area file (%d)" % (view.GetAtomCount(), len(area_lines))
for l in area_lines: for l in area_lines:
atom_no, sesa, sasa = l.split() atom_no, sesa, sasa = l.split()
a = entity.atoms[int(atom_no)] a = view.atoms[int(atom_no)]
if asa_prop: if asa_prop:
a.SetFloatProp(asa_prop, float(sasa)) a.SetFloatProp(asa_prop, float(sasa))
if esa_prop: if esa_prop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment