Skip to content

Commit

Permalink
Reconciled fix for 8ht7 and 2mcc (IndexError exception occurs due to …
Browse files Browse the repository at this point in the history
…the previous fix)
  • Loading branch information
yokochi47 committed Dec 1, 2024
1 parent 43d0080 commit 2b5bc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwpdb/utils/nmr/NEFTranslator/NEFTranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7013,7 +7013,7 @@ def get_valid_star_atom_in_xplor(self, comp_id, atom_id, details=None, leave_unm
if '#' in atom_id:
atom_id = atom_id.replace('#', '%')

if atom_id[-1] in ('%', '*') and atom_id[-2] != "'" and self.__csStat.getTypeOfCompId(comp_id)[1]:
if atom_id[-1] in ('%', '*') and len(atom_id) > 2 and atom_id[-2] != "'" and self.__csStat.getTypeOfCompId(comp_id)[1]:
atom_id = translateToStdAtomName(atom_id[:-1], refCompId=comp_id, ccU=self.__ccU) + atom_id[-1]

if atom_id[0] in ('1', '2', '3'):
Expand Down

0 comments on commit 2b5bc7a

Please sign in to comment.