Skip to content

Commit

Permalink
Fix IndexError of the previous fix for 7nt7
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed Apr 3, 2024
1 parent d0b9bce commit 4b531c0
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/AriaMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ def exitAria_mr(self, ctx: AriaMRParser.Aria_mrContext): # pylint: disable=unus
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/BiosymMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ def exitBiosym_mr(self, ctx: BiosymMRParser.Biosym_mrContext): # pylint: disabl
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/CyanaMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ def exitCyana_mr(self, ctx: CyanaMRParser.Cyana_mrContext): # pylint: disable=u
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/DynamoMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ def exitDynamo_mr(self, ctx: DynamoMRParser.Dynamo_mrContext): # pylint: disabl
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/IsdMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ def exitIsd_mr(self, ctx: IsdMRParser.Isd_mrContext): # pylint: disable=unused-
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/RosettaMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ def exitRosetta_mr(self, ctx: RosettaMRParser.Rosetta_mrContext): # pylint: dis
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down
3 changes: 3 additions & 0 deletions wwpdb/utils/nmr/mr/SybylMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ def exitSybyl_mr(self, ctx: SybylMRParser.Sybyl_mrContext): # pylint: disable=u
if sa['ref_chain_id'] == ref_chain_id
and sa['test_chain_id'] == test_chain_id)

if len(sa['test_seq_id']) != len(sa['ref_seq_id']):
continue

poly_seq_model = next(ps for ps in self.__polySeq
if ps['auth_chain_id'] == ref_chain_id)

Expand Down

0 comments on commit 4b531c0

Please sign in to comment.