Skip to content

Commit

Permalink
subtract 1 from int(altloc)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 8, 2023
1 parent 96ba836 commit 0a00bfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prody/proteins/ciffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from collections import OrderedDict
import os.path
from numbers import Integral
import numpy as np

from prody.atomic import AtomGroup
Expand Down Expand Up @@ -437,7 +436,7 @@ def _parseMMCIFLines(atomgroup, lines, model, chain, subset,
alt = line.split()[fields['label_alt_id']]
if alt not in which_altlocs and which_altlocs != 'all':
try:
alt = ascii_uppercase[int(alt)]
alt = ascii_uppercase[int(alt)-1]
except TypeError:
if not warnedAltloc:
LOGGER.warn('alt {0} not in which_altlocs {1}'.format(alt, which_altlocs))
Expand Down

0 comments on commit 0a00bfa

Please sign in to comment.