Skip to content

Commit

Permalink
DAOTHER-9405: Fix backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed May 15, 2024
1 parent 784c7e8 commit 681160b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions wwpdb/utils/nmr/NmrDpUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -9156,11 +9156,20 @@ def __rescueImmatureStr__(self, file_name, file_type, content_subtype, sf, sf_fr

tag = 'Original_PDB_atom_name_' + str(i)
if tag in loop.tags:
_dat = get_lp_tag(loop, [tag])

_tag = 'Auth_atom_name_' + str(i)
if _tag not in loop.tags:
_dat = get_lp_tag(loop, [tag])

for idx, row in enumerate(loop):
row.append(_dat[idx])

loop.add_tag(_tag)
loop.add_data(_dat)

if __pynmrstar_v3_2__:
loop.remove_tag(tag)
else:
loop.delete_tag(tag)

elif content_subtype == 'dihed_restraint':

Expand Down

0 comments on commit 681160b

Please sign in to comment.