Numpy warning: Fix float division result used for shape of unpacked data.

This commit is contained in:
David Vierra 2015-09-14 17:47:23 -10:00
parent c804a5e945
commit 3f32fe0ec1

View File

@ -68,7 +68,7 @@ def unpackNibbleArray(dataArray):
def packNibbleArray(unpackedData):
packedData = numpy.array(unpackedData.reshape(16, 16, unpackedData.shape[2] / 2, 2))
packedData = numpy.array(unpackedData.reshape(16, 16, unpackedData.shape[2] // 2, 2))
packedData[..., 1] <<= 4
packedData[..., 1] |= packedData[..., 0]
return numpy.array(packedData[:, :, :, 1])