Commit d6a1efde authored by John Douglas Veitch's avatar John Douglas Veitch

Merge branch 'integer_indices_when_combining_posteriors' into 'master'

Minor fix to cbcBayesCombinePosteriors.py: Since numpy-1.12 float indices are no longer implicitly converted to integers

See merge request !509
parents 58e12f4c f46f334c
Pipeline #35067 passed with stages
in 25 minutes and 18 seconds
......@@ -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