Skip to content

Commit

Permalink
Merge pull request #2008 from jamesmkrieger/nonstd_cif_fixes
Browse files Browse the repository at this point in the history
broader if conditions for parsing nonstandard cif files
  • Loading branch information
jamesmkrieger authored Dec 3, 2024
2 parents f9d6716 + 93c30ed commit 35b29bd
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 35b29bd

Please sign in to comment.