Commit f46f334c authored by Sebastian Gaebel's avatar Sebastian Gaebel

Since numpy-1.12 float indices are no longer implicitly converted to integers,...

Since numpy-1.12 float indices are no longer implicitly converted to integers, this patch adds explicit conversion for combining posteriors using the weights option.
parent 39f98438
......@@ -186,7 +186,7 @@ else:
testSize = sizeList[minIndex] / fracWeight[minIndex]
weightNum = np.around(fracWeight * testSize)
weightNum = np.around(fracWeight * testSize).astype(int)
sizeOut = sum(weightNum)
samplesOut = np.empty(sizeOut, dtype=datatypes)
......
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