Skip to content

Commit

Permalink
Fixed a bug during testing this ticket. Refs #7653.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Aug 15, 2013
1 parent 1342c46 commit 89777fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,13 @@ def _parseFullprofPrfFile(self, filename):
if firstline < 0:
raise NotImplementedError("File format is incorrect. Unable to locate data title line")

# FIXME - Need to parse header line: T.O.F. Yobs Ycal Yobs-Ycal Backg Bragg ...
# to determine how the data line look alike (==5 or >= 5)

count = 0
for i in xrange(firstline, len(lines)):
terms = lines[i].split()
if len(terms) == 5 and lines[i].count(")") == 0:
if (len(terms) == 5 and lines[i].count(")") == 0) or (len(terms) > 5 and terms[2].count("(") == 0):
# it is a data line
x = float(terms[0])
yobs = float(terms[1])
Expand Down

0 comments on commit 89777fb

Please sign in to comment.