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: ...@@ -846,7 +846,7 @@ class TLU:
if (nFifoWords > 0): if (nFifoWords > 0):
fifoData = self.getFifoData(nFifoWords) fifoData = self.getFifoData(nFifoWords)
outList = self.parseFifoData( outList = self.parseFifoData(
fifoData, nFifoWords/6, mystruct, root_tree, False) fifoData, int(nFifoWords/6), mystruct, root_tree, False)
time.sleep(0.1) time.sleep(0.1)
index = index + nFifoWords/6 index = index + nFifoWords/6
...@@ -1045,7 +1045,7 @@ class TLU: ...@@ -1045,7 +1045,7 @@ class TLU:
nFifoWords = int(eventFifoFillLevel) nFifoWords = int(eventFifoFillLevel)
fifoData = self.getFifoData(nFifoWords) 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: if saveD:
self.saveFifoData(outList) self.saveFifoData(outList)
if plotD: 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