format change

This commit is contained in:
yunfeibai
2017-05-10 16:15:13 -07:00
parent 719dba5cd1
commit c9aad0b6b0

View File

@@ -31,15 +31,15 @@ def readLogFile(filename, verbose = True):
print('Columns:'),
print(ncols)
# Read data
wholeFile = f.read()
# Read data
wholeFile = f.read()
# split by alignment word
chunks = wholeFile.split(b'\xaa\xbb')
log = list()
if verbose:
print("num chunks:")
print(len(chunks))
chunkIndex = 0
chunkIndex = 0
for chunk in chunks:
print("len(chunk)=",len(chunk)," sz = ", sz)
if len(chunk) == sz:
@@ -52,7 +52,7 @@ chunkIndex = 0
if verbose:
print(" ",keys[i],"=",values[i])
log.append(record)
log.append(record)
return log