Skip to content
Snippets Groups Projects
Commit fec24bae authored by Marco Biasini's avatar Marco Biasini
Browse files

fix MatchResiduesByNum

the method was doing the "wrong thing" when structure a
had, for example residues with numbers 1 and 3 and
structure two had residues with numbers 2 and 4.
parent f7438943
Branches
Tags
No related merge requests found
......@@ -112,10 +112,11 @@ def MatchResidueByNum(ent_a, ent_b, atoms='all'):
while True:
r_a=residues_a.next()
r_b=residues_b.next()
while r_a.number<r_b.number:
r_a=residues_a.next()
while r_b.number<r_a.number:
r_b=residues_b.next()
while r_a.number!=r_b.number:
while r_a.number<r_b.number:
r_a=residues_a.next()
while r_b.number<r_a.number:
r_b=residues_b.next()
assert r_a.number==r_b.number
result_a,result_b=_fetch_atoms(r_a, r_b, result_a, result_b, atmset)
except StopIteration:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment