two_sided_credible_interval fails when weights argument is an array
The two_sided_credible_interval
function fails if the weights
argument is a NumPy array, with the error:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The test for weights
being None
should instead be:
if weights is None: