Commit 57c57cfc authored by David Cussans's avatar David Cussans

Fixing bug: nEvents needs to be integer if used in a loop variable. Exposed by…

Fixing bug: nEvents needs to be integer if used in a loop variable. Exposed by moving from Python2 --> 3
parent 33873b2c
......@@ -846,7 +846,7 @@ class TLU:
if (nFifoWords > 0):
fifoData = self.getFifoData(nFifoWords)
outList = self.parseFifoData(
fifoData, nFifoWords/6, mystruct, root_tree, False)
fifoData, int(nFifoWords/6), mystruct, root_tree, False)
time.sleep(0.1)
index = index + nFifoWords/6
......@@ -1045,7 +1045,7 @@ class TLU:
nFifoWords = int(eventFifoFillLevel)
fifoData = self.getFifoData(nFifoWords)
outList = self.parseFifoData(fifoData, nFifoWords/6, None, None, True)
outList = self.parseFifoData(fifoData, int(nFifoWords/6), None, None, True)
if saveD:
self.saveFifoData(outList)
if plotD:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment