Skip to content

Commit

Permalink
py format
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Jul 30, 2021
1 parent 8b67093 commit 8eed4eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/utils/bp5dbg/adios2/bp5dbg/idxtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ def ReadIndex(f, fileSize, WriterCount):
pos = pos + 3 * 8
for Writer in range(0, WriterCount):
start = " Writer " + str(Writer) + " data "
thiswriter = np.frombuffer(table, dtype=np.uint64, count=int(FlushCount * 2 + 1),
thiswriter = np.frombuffer(table, dtype=np.uint64,
count=int(FlushCount * 2 + 1),
offset=pos)

for i in range(0, FlushCount): # for flushes
start += "loc:" + str(thiswriter[int(i * 2)]) + " siz:" + str(thiswriter[i * 2 + 1]) + "; "
for i in range(0, FlushCount): # for flushes
start += ("loc:" + str(thiswriter[int(i * 2)]) + " siz:" +
str(thiswriter[i * 2 + 1]) + "; ")
start += "loc:" + str(thiswriter[int(FlushCount * 2)])
pos = int(pos + (FlushCount * 2 + 1) * 8)
print(start)
print("---------------------------------------------------" +
"-----------------------------------------------")
"-----------------------------------------------")
step = step + 1

if fileSize - f.tell() > 1:
Expand Down

0 comments on commit 8eed4eb

Please sign in to comment.