Skip to content

Commit

Permalink
Fix for p4p files without value
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Sep 1, 2023
1 parent 4624d82 commit 49b2b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/structurefinder/p4pfile/p4p_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, p4plist):
def parse_p4p(self):
for line in self.p4plist:
spline = line.split()
if len(spline) < 2:
continue
card = spline[0]
if card == "CELL" and len(spline) > 5:
self.cell = [float(x) for x in spline[1:7]]
Expand Down

0 comments on commit 49b2b84

Please sign in to comment.