Make sure nvalues is int and not float for Python 3

This commit is contained in:
hugovk 2014-05-26 21:18:48 +03:00
parent 14c8d8afe4
commit 5217a523d6

View File

@ -208,7 +208,7 @@ def makeSpiderHeader(im):
if 1024%lenbyt != 0: labrec += 1
labbyt = labrec * lenbyt
hdr = []
nvalues = labbyt / 4
nvalues = int(labbyt / 4)
for i in range(nvalues):
hdr.append(0.0)