Skip to content

Commit

Permalink
diversify if conditions for _parseMMCIFLines
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Dec 1, 2024
1 parent 3e3d822 commit 93c30ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/ciffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ def _parseMMCIFLines(atomgroup, lines, model, chain, subset,
stop = 0
while not doneAtomBlock:
line = lines[i]
if line[:11] == '_atom_site.':
if line.strip()[:11] == '_atom_site.':
fieldCounter += 1
fields[line.split('.')[1].strip()] = fieldCounter
foundAtomFields = True

elif foundAtomFields and line.strip() != '#':
elif foundAtomFields and line.strip() not in ['#', '']:
if not foundAtomBlock:
foundAtomBlock = True
start = i
Expand Down

0 comments on commit 93c30ed

Please sign in to comment.