From b15196a2849c5d54105a6726b3e53824e9e9eefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=BD?= <michal.maly@ibt.cas.cz> Date: Mon, 15 Aug 2022 18:18:11 +0200 Subject: [PATCH] Reset ConfalPyramidsIterator internal state correctly when switching chains --- src/extensions/dnatco/confal-pyramids/util.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extensions/dnatco/confal-pyramids/util.ts b/src/extensions/dnatco/confal-pyramids/util.ts index 6dc100cab..f30784b80 100644 --- a/src/extensions/dnatco/confal-pyramids/util.ts +++ b/src/extensions/dnatco/confal-pyramids/util.ts @@ -87,6 +87,8 @@ export class ConfalPyramidsIterator { return this.moveStep(); } else { this.residueIt.setSegment(this.chainIt.move()); + if (this.residueIt.hasNext) + this.residueTwo = this.residueIt.move(); return this.moveStep(); } } -- GitLab