PyMultiNest
PyMultiNest copied to clipboard
Problem with analyer
In line 136 of analyse.py should be something like
bi = lambda x: numpy.interp(x*b[-1,0], b[:,0], b[:,1], left=b[0,1], right=b[-1,1])
instead of
bi = lambda x: numpy.interp(x, b[:,0], b[:,1], left=b[0,1], right=b[-1,1])
I guess the assumption is that the first column sums to 1 accurately. Are you having an issue? Can you create a simple test problem?
b[:,0] = b[:,0].cumsum() / b[:,0].sum()
is another solution I guess