Skip to content

Commit

Permalink
move serial update up
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Aug 10, 2023
1 parent e2c57f1 commit 97a13ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/pdbfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,15 +1453,15 @@ def writePDBStream(stream, atoms, csets=None, **kwargs):
anisouline = ANISOULINE_GE100K_GE10K
LOGGER.warn('Indices are exceeding 99999 and hexadecimal format is being used for indices and resnums')

serial += num_ter_lines

if hybrid36:
serial = decToHybrid36(serials[i])
resnum = decToHybrid36(resnums[i], resnum=True)
else:
serial = serials[i]
resnum = resnums[i]

serial += num_ter_lines

if pdbline == PDBLINE_LT100K or hybrid36:
if len(str(resnum)) == 5:
if icodes[i] == '':
Expand Down

0 comments on commit 97a13ee

Please sign in to comment.